Bug in plotting - 3.0.4 RC1

Marco Caliari marco.caliari at univr.it
Wed Jan 21 02:36:59 CST 2009


> I fixed the problem changing back
>
>      Matrix new_kids (n-1, 1);
>
> to
>
>     Matrix new_kids (1, n-1);

> as it was in octave-3.0.3/src/graphics.cc

Not sure it is the right fix. In fact, now there is a problem with the 
order of the legends, which can be fixed changing back

    for i = nargs:-1:1

to

    for i = 1:nargs

as it was in octave-3.0.3/scripts/plot/legend.m

Marco

---------- Forwarded message ----------
Date: Tue, 20 Jan 2009 10:42:13 +0100 (CET)
From: Marco Caliari <marco.caliari at univr.it>
To: bug-octave at octave.org
Subject: Bug in plotting - 3.0.4 RC1

Dear maintainers,

the following script

x = linspace(0,10,11);
y = x+1;
plot(x,y,x,y)
xlabel('x')
ylabel('y')

produces the following

error: __go_draw_axes__: unknown object class, root figure
error: evaluating switch command near line 332, column 7
error: evaluating for command near line 328, column 5
error: evaluating if command near line 25, column 3
error: called from `__go_draw_axes__' in file 
`/usr/local/share/octave/3.0.4/m/plot/__go_draw_axes__.m'
error: evaluating switch command near line 58, column 4
error: evaluating for command near line 56, column 2
error: evaluating if command near line 33, column 7
error: evaluating if command near line 26, column 5
error: evaluating if command near line 25, column 3
error: called from `__go_draw_figure__' in file 
`/usr/local/share/octave/3.0.4/m/plot/__go_draw_figure__.m'
error: evaluating if command near line 81, column 6
error: evaluating if command near line 78, column 4
error: evaluating if command near line 76, column 2
error: evaluating for command near line 75, column 7
error: evaluating if command near line 45, column 5
error: called from `drawnow' in file 
`/usr/local/share/octave/3.0.4/m/plot/drawnow.m'

I'm using Octave-3.0.4 RC1

No problem with Octave-3.0.3.

Best regards,

Marco


More information about the Bug-octave mailing list