There was a bug in octplot's contourc.m. I think this file is now also used in octave. I attach the (trivial) patch. This raises a general question -- do we keep 2 copies of these files? and how do we synchronize?
As noted in a previous email to this list, all the "general" high level plotting functions (i.e. should work on all handle graphics systems) from octplot are now in a separate directory in the octplot distribution, but this I think is not enough. I'm open to suggestions.
Shai
Modified: trunk/octplot/high_level/contourc.m =================================================================== --- trunk/octplot/high_level/contourc.m 2007-02-02 07:56:42 UTC (rev 425)
+++ trunk/octplot/high_level/contourc.m 2007-02-02 10:12:38 UTC (rev 426) @@ -52,13 +52,13 @@ if (nargin==1) vn = 10; z = varargin{1}; - x = 1:size(z,1); - y = 1:size(z,2); + x = 1:size(z,2);
+ y = 1:size(z,1); elseif (nargin==2) vn = varargin{2}; z = varargin{1}; - x = 1:size(z,1); - y = 1:size(z,2); + x = 1:size(z,2); + y = 1:size(z,1); elseif (nargin==3)
vn = 10; x = varargin{1};