[Scilab-users] BUG legends_mc with xsave and xload
Perrichon
perrichon.pierre at wanadoo.fr
Wed Jan 15 10:08:49 CET 2020
PS : xsave and xload correctly work with « legend » instruction under 5.5.2,
but « legends_mc » is the ideal presentation.
De : Perrichon <perrichon.pierre at wanadoo.fr>
Envoyé : mercredi 15 janvier 2020 10:05
À : 'Users mailing list for Scilab' <users at lists.scilab.org>
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 cant 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 ?
Ive 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 <users-bounces at lists.scilab.org
<mailto:users-bounces at lists.scilab.org> > De la part de Samuel Gougeon
Envoyé : mardi 14 janvier 2020 21:08
À : users at lists.scilab.org <mailto:users at lists.scilab.org>
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, Ill 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200115/10e8572d/attachment.htm>
More information about the users
mailing list