[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plotting problem again
From: |
David Bateman |
Subject: |
Re: Plotting problem again |
Date: |
Sun, 01 Jun 2008 19:35:58 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080306) |
Ben Abbott wrote:
> 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
Its difficult to include a graphics test script. What I usual do is
include a demo that serves the same purpose by is not run from "make
check" but only explicitly with "demo <func>".
D.
Re: Plotting problem again, Doug Stewart, 2008/06/01