changeset 10675:e5b1353695ef

__contour__.m: Correctly size X and Y when only Z specified (bug #30002).
author Rik <octave@nomad.inbox5.com>
date Tue, 01 Jun 2010 09:19:12 -0700
parents e3064439d6b4
children f414049847d5
files scripts/ChangeLog scripts/plot/private/__contour__.m
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-01  Rik <octave@nomad.inbox5.com>
+	* plot/private/__contour__.m: Correctly size X and Y when only Z
+        specified (bug #30002).
+
 2010-05-31  Rik <octave@nomad.inbox5.com>
 	* specfun/legendre.m: Orient row vector correctly (bug #29997).
         Add input validation for negative values and %tests to check
--- a/scripts/plot/private/__contour__.m
+++ b/scripts/plot/private/__contour__.m
@@ -81,8 +81,8 @@
 
   if (length(varargin) < 5)
     z1 = varargin{3};
-    x1 = 1 : rows(z1);
-    y1 = 1 : columns(z1);
+    x1 = 1 : columns(z1);
+    y1 = 1 : rows(z1);
   else
     x1 = varargin{3};
     y1 = varargin{4};