[Changeset] Re: "steps plot style" seems not to work
Sergei Steshenko
sergstesh at yahoo.com
Thu May 1 12:58:01 CDT 2008
--- David Bateman <adb014 at gmail.com> wrote:
> Sergei Steshenko wrote:
> > --- Sergei Steshenko <sergstesh at yahoo.com> wrote:
> >
> >> Hello All,
> >>
> >> if I'm doing this:
> >>
> >> octave:12> plot(0:9, 1:10,"^1", 0:9, 1:10, "^2");
> >>
> >> I'm getting a plot and no error messages;
> >>
> >> if, however, I'm doing this:
> >>
> >> octave:13> plot(0:9, 1:10,"L1", 0:9, 1:10, "L2");
> >>
> >> , I'm getting:
> >>
> >> "
> >> octave:13> plot(0:9, 1:10,"L1", 0:9, 1:10, "L2");
> >> warning: set: invalid property `L1'
> >> error: plot: properties must appear followed by a value
> >> error: evaluating if command near line 58, column 6
> >> error: evaluating if command near line 57, column 4
> >> error: evaluating if command near line 55, column 2
> >> error: evaluating if command near line 54, column 7
> >> error: evaluating while command near line 41, column 5
> >> error: evaluating if command near line 28, column 3
> >> error: called from `__plt__' in file
> >> `/maxtor5/sergei/AppsFromScratchWD/install/octave-3.0.1/share/octave/3.0.1/m/plot/__plt__.m'
> >> error: evaluating assignment expression near line 187, column 9
> >> error: called from `plot' in file
> >> `/maxtor5/sergei/AppsFromScratchWD/install/octave-3.0.1/share/octave/3.0.1/m/plot/plot.m'
> >> ".
> >>
> >> I don't quite get it why it doesn't work in the second case.
> >>
> >> The version is 3.0.1.
> >>
> >> Thanks,
> >> Sergei.
> >>
> >>
>
>
> I believe that this is the interface for the step plot with the old
> plotting code and no longer works.. The "L" format should be removed
> from the plot help text. For the above try
>
> stairs(0:9,1:10)
>
> Which is the matlab way of doing this. It doesn't look like the stair
> plot handles the properties yet, and this should be fixed, with the
> attached patch. After applying this patch try
>
> stairs(0:9,1:10,'1');
> hold on
> stairs(0:9,2:11,'2');
>
> for something like the above.
>
> D.
Thanks.
I started using 'stairs' even before writing the original Email; so far it works for me.
...
Which part of the graphing process ('octave' or 'gnuplot') is responsible for setting tics
and their numerical values on 'y' axis when 'stairs' is called ?
Thanks,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Bug-octave
mailing list