changeset 7236:3ac12f33cf4b

[project @ 2007-12-02 06:06:12 by jwe]
author jwe
date Sun, 02 Dec 2007 06:06:12 +0000
parents ee0820d8b4ac
children 7e248dd1e6d5
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 15 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sat Dec 01 00:49:33 2007 +0000
+++ b/scripts/ChangeLog	Sun Dec 02 06:06:12 2007 +0000
@@ -1,3 +1,8 @@
+2007-12-02  John W. Eaton  <jwe@octave.org>
+
+	* plot/__go_draw_axes__.m: Remove unnecessary call to
+	get_data_limits.
+
 2007-11-30  John W. Eaton  <jwe@octave.org>
 
 	* plot/__go_draw_axes__.m: Don't compute data or axis limits.
--- a/scripts/plot/__go_draw_axes__.m	Sat Dec 01 00:49:33 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Sun Dec 02 06:06:12 2007 +0000
@@ -393,10 +393,6 @@
 	      else
 		yhi = ydat+udat;
 	      endif
-	      if (yautoscale)
-		ty = [ydat; ylo; yhi];
-		[ymin, ymax, yminp] = get_data_limits (ymin, ymax, yminp, ty);
-	      endif
 	      if (xerr)
 		if (isempty (xldat))
 		  xlo = xdat;
@@ -417,6 +413,16 @@
 		withclause{data_idx} = "with yerrorbars";
 	      endif
 	    elseif (xerr)
+	      if (isempty (xldat))
+		xlo = xdat;
+	      else
+		xlo = xdat-xldat;
+	      endif
+	      if (isempty (xudat))
+		xhi = xdat;
+	      else
+		xhi = xdat+xudat;
+	      endif
 	      data{data_idx} = [xdat, ydat, xlo, xhi]';
 	      usingclause{data_idx} = "using ($1):($2):($3):($4)";
 	      withclause{data_idx} = "with xerrorbars";