Bug in plot2d with legends in scilab-5.1.1

Bug in plot2d with legends in scilab-5.1.1

Post by Rainer von » Sat, 18 Apr 2009 21:49:13


Hi
Playing with some plotting examples in scilab-5.1.1 I found the
following bug with the legend function
while plotting e.g. errors of a computation. This bug don't occur with
scilab-4.1.2.

x=linspace(0,2*%pi,100)';
y=[sin(x) cos(x)];
plot2d(x,y);legend(['sin(x)';'cos(x)']);
a=1e-12;
halt()
clf()
plot2d(x,a*y);legend(['a*sin(x)';'a*cos(x)']); // Here the bug occurs.

Rainer
 
 
 

Bug in plot2d with legends in scilab-5.1.1

Post by ycolle » Sat, 18 Apr 2009 22:04:53

What kind of bug do you have ?
Under windows XP + 5.1.1, this plot seems OK to me.

YC

 
 
 

Bug in plot2d with legends in scilab-5.1.1

Post by Rainer von » Sat, 18 Apr 2009 22:41:19


Hi
Under Windows XP-SP3 + scilab-5.1.1 the above example on my computer
shows a bug with the legend function.
In the case a=1e-12 the legend box shrinks to a very small rectangle,
and the text is written next to it.
Perhaps there is a relation to the video card problem which occurs
with scilab-5.1 on my computer ?
Rainer
 
 
 

Bug in plot2d with legends in scilab-5.1.1

Post by ycolle » Sat, 18 Apr 2009 22:48:28


Maybe. I have updated my video driver rather recently and the legend
box is not shrinked.

YC
 
 
 

Bug in plot2d with legends in scilab-5.1.1

Post by Rainer von » Sun, 19 Apr 2009 23:24:01


Hi
If I use the old function legend.sci copied from scilab-4.1.2 the
above plotting example works fine
under scilab-5.1.1. So I think there is really a bug in the new legend
function of scilab-5.1.1.
I don't understand why this plot "seems to be OK " for you ? Did you
try the second plot with a=1e-12 ?
Rainer
 
 
 

Bug in plot2d with legends in scilab-5.1.1

Post by ycolle » Mon, 20 Apr 2009 01:31:13


I copy pasted the script you post in the first message.
That's strange that it doesn't work with the 5.1.1. legend function
but works with the 4.1.2 function ...

YC