[Changeset] Re: "steps plot style" seems not to work
David Bateman
adb014 at gmail.com
Thu May 1 11:38:00 CDT 2008
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch8016
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080501/de3586d7/attachment.ksh
More information about the Bug-octave
mailing list