Plotting problem again

Ben Abbott bpabbott at mac.com
Sun Jun 1 11:44:21 CDT 2008


On Jun 1, 2008, at 8:07 AM, Thomas Weber wrote:

> On 01/06/08 03:58 -0700, asha g wrote:
>> I am plotting the same data as before vvvv is a fn of x and y.
>> size(vvvv) = 10 10
>> length(x) = 10
>> length(y) = 10
>>
>> When I give a plot3(x,y,vvvv) command I get the following error:
>>
>> ans =
>>
>>   10   10
>>
>> error: plot3: [length(x), length(y)] must match size(z)
>> error: evaluating if command near line 159, column 2
>> error: evaluating if command near line 158, column 7
>> error: evaluating if command near line 113, column 5
>> error: evaluating while command near line 103, column 3
>> error: called from `plot3' in file `/usr/local/share/octave/3.0.0/m/ 
>> plot/plot3.m'
>> error: near line 109 of file `/home/proj/08/cesasha/aseasha/ 
>> cabunbactoct.
>
> [cc'ing bugs, this looks like a bug]
>
> I think the order of the elseif and else branches should be reverted,
> see attached patch. No hg changeset, as I want to discuss this first.

>
> 	Thomas

I'll take a quick look at your patch ... it does look like you've  
found the problem. I'll do some tests to confirm.

Speaking of tests, who might test scripts be properly included in such  
cases? May be assume a graphics backend is alive and well during "make  
check".

Ben


More information about the Bug-octave mailing list