[Pkg-octave-devel] Bug#492223: octave3.0: contourf only accepts vector X and Y if same

David Bateman adb014 at gmail.com
Sun Jul 27 00:30:27 UTC 2008


Francesco Potorti` wrote:
> package octave3.0
> tags 492223 upstream
> stop
> 
> Dear Octave maintainers,
> 
> The bug report reproduced below has been filed against the Debian 
> package and regards the upstream sources.  The report is recorded at
> http://bugs.debian.org/492223
> 
> Thanks,
> 
> 
> Package: octave3.0
> Version: 1:3.0.1-4
> Severity: normal
> File: /usr/share/octave/3.0.1/m/plot/contourf.m
> 
> Contourf works with X and Y generated by meshgrid.
> It also works with vector X and Y of the same size.
> It fails if vector X and Y are of different size.
> 
> octave> x=1:5;y=x;z=vander(x);contourf(x,y,z,4)
> octave> x=1:5;y=x(1:end-1);z=vander(x)(1:end-1,:);
> octave> contourf(x,y,z,4)
> error: patch: X and Y must be of same size
> error: evaluating if command near line 230, column 3
> error: called from `contourf:parse_args' in file `/usr/share/octave/3.0.1/m/plot/contourf.m'
> error: called from `contourf' in file `/usr/share/octave/3.0.1/m/plot/contourf.m'
> octave> [xx,yy]=meshgrid(x,y);contourf(xx,yy,z,4)
> 


Ok, changeset attached

D.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch8354
Url: http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20080727/6982de45/attachment-0001.txt 


More information about the Pkg-octave-devel mailing list