[Scilab-users] BUG legends_mc with xsave and xload

classic Classic list List threaded Threaded
4 messages Options
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] BUG legends_mc with xsave and xload

Hello, Hello Samuel,

 

It seems that it is not possible to correctly record or to restaure a graph using « legends_scm » with « xsave » and « xload »

Structures of the graph are not respected and illegible.

 

If the bug is not corrected, I’ll will be obliged to go back with the « legend » instruction

Sincerely

 

 

How to reproduce the bugg :

 

scf(1)

clf, plot2d(), legends_mc('line #'+string(1:3), Lpc=-1, pos="ul" ) // classic

xsave("foo.scg", gcf())

scf(2)

xload("foo.scg")

 

 

 

 

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: BUG legends_mc with xsave and xload

Hello Pierre,

Le 14/01/2020 à 18:33, Perrichon a écrit :

Hello, Hello Samuel,

 

It seems that it is not possible to correctly record or to restaure a graph using « legends_scm » with « xsave » and « xload »

Structures of the graph are not respected and illegible.

 

If the bug is not corrected, I’ll will be obliged to go back with the « legend » instruction

Sincerely

 

How to reproduce the bugg :

 

scf(1)

clf, plot2d(), legends_mc('line #'+string(1:3), Lpc=-1, pos="ul" ) // classic

xsave("foo.scg", gcf())

scf(2)

xload("foo.scg")


I am not able to reproduce any issue when running this code with Scilab 6.0.2 on Windows 7.
The initial legend is recovered with the whole figure.

Samuel



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

Re: BUG legends_mc with xsave and xload

Hello Samuel,

You are rigth, it runs with scilab .0.2

But my project is written ith scilab 5.5.2, and I can’t actually go to 6.0.2. May be in the second part of 2020

 

Is there a way to write a workaround with 5.5.2 ?

 

I’ve done a copy of xload from 6.02 and try to adapt

1 no recursive for gcf().uid~=uid è replace by hh=gcf() then hh.uid~=uid

2 && not an operator in 5.5.2 (C langage) replace by &

 

But the problem seems with load(fil) in function xloadFigure(fil)

 

This is urgent for me to find a solution

Any advices ?

 

Best regards

 

Pierre P.

 

De : users <[hidden email]> De la part de Samuel Gougeon
Envoyé : mardi 14 janvier 2020 21:08
À : [hidden email]
Objet : Re: [Scilab-users] BUG legends_mc with xsave and xload

 

Hello Pierre,

 

Le 14/01/2020 à 18:33, Perrichon a écrit :

Hello, Hello Samuel,

 

It seems that it is not possible to correctly record or to restaure a graph using « legends_scm » with « xsave » and « xload »

Structures of the graph are not respected and illegible.

 

If the bug is not corrected, I’ll will be obliged to go back with the « legend » instruction

Sincerely

 

How to reproduce the bugg :

 

scf(1)

clf, plot2d(), legends_mc('line #'+string(1:3), Lpc=-1, pos="ul" ) // classic

xsave("foo.scg", gcf())

scf(2)

xload("foo.scg")

 

I am not able to reproduce any issue when running this code with Scilab 6.0.2 on Windows 7.
The initial legend is recovered with the whole figure.

Samuel

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

Re: BUG legends_mc with xsave and xload

In reply to this post by Samuel GOUGEON

PS : xsave and xload correctly work with « legend » instruction under 5.5.2, but « legends_mc » is the ideal presentation.

 

 

De : Perrichon <[hidden email]>
Envoyé : mercredi 15 janvier 2020 10:05
À : 'Users mailing list for Scilab' <[hidden email]>
Objet : RE: [Scilab-users] BUG legends_mc with xsave and xload

 

Hello Samuel,

You are rigth, it runs with scilab .0.2

But my project is written ith scilab 5.5.2, and I can’t actually go to 6.0.2. May be in the second part of 2020

 

Is there a way to write a workaround with 5.5.2 ?

 

I’ve done a copy of xload from 6.02 and try to adapt

1 no recursive for gcf().uid~=uid è replace by hh=gcf() then hh.uid~=uid

2 && not an operator in 5.5.2 (C langage) replace by &

 

But the problem seems with load(fil) in function xloadFigure(fil)

 

This is urgent for me to find a solution

Any advices ?

 

Best regards

 

Pierre P.

 

De : users <[hidden email]> De la part de Samuel Gougeon
Envoyé : mardi 14 janvier 2020 21:08
À : [hidden email]
Objet : Re: [Scilab-users] BUG legends_mc with xsave and xload

 

Hello Pierre,

 

Le 14/01/2020 à 18:33, Perrichon a écrit :

Hello, Hello Samuel,

 

It seems that it is not possible to correctly record or to restaure a graph using « legends_scm » with « xsave » and « xload »

Structures of the graph are not respected and illegible.

 

If the bug is not corrected, I’ll will be obliged to go back with the « legend » instruction

Sincerely

 

How to reproduce the bugg :

 

scf(1)

clf, plot2d(), legends_mc('line #'+string(1:3), Lpc=-1, pos="ul" ) // classic

xsave("foo.scg", gcf())

scf(2)

xload("foo.scg")

 

I am not able to reproduce any issue when running this code with Scilab 6.0.2 on Windows 7.
The initial legend is recovered with the whole figure.

Samuel

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users