changeset 6268:59deaa5b7e99

[project @ 2007-02-05 21:25:53 by jwe]
author jwe
date Mon, 05 Feb 2007 21:25:54 +0000
parents 0078497b3b0b
children 2f357df626cb
files scripts/ChangeLog scripts/plot/__uiobject_draw_axes__.m
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Feb 01 10:34:14 2007 +0000
+++ b/scripts/ChangeLog	Mon Feb 05 21:25:54 2007 +0000
@@ -1,3 +1,8 @@
+2007-02-05  John W. Eaton  <jwe@octave.org>
+
+	* plot/__uiobject_draw_axes__.m: Use title "" if no explicit title.
+	When setting {x,y,z}lim, also set {x,y,z}limmode to "auto.
+
 2007-02-01  John W. Eaton  <jwe@octave.org>
 
 	* plot/__uiobject_draw_axes__.m:
--- a/scripts/plot/__uiobject_draw_axes__.m	Thu Feb 01 10:34:14 2007 +0000
+++ b/scripts/plot/__uiobject_draw_axes__.m	Mon Feb 05 21:25:54 2007 +0000
@@ -244,7 +244,7 @@
 	case "line"
 	  data_idx++;
 	  if (isempty (obj.keylabel))
-	    titlespec{data_idx} = "";
+	    titlespec{data_idx} = "title \"\"";
 	  else
 	    titlespec{data_idx} = strcat ("title \"", obj.keylabel, "\"");
 	  endif
@@ -374,7 +374,7 @@
 	  data_idx++;
 	  style = do_linestyle_command (obj, data_idx, plot_stream);
 	  if (isempty (obj.keylabel))
-	    titlespec{data_idx} = "";
+	    titlespec{data_idx} = "title \"\"";
 	  else
 	    titlespec{data_idx} = strcat ("title \"", obj.keylabel, "\"");
 	  endif
@@ -472,7 +472,7 @@
 
     if (xautoscale && have_data)
       xlim = get_axis_limits (xmin, xmax, xminp, xlogscale);
-      set (h, "xlim", xlim);
+      set (h, "xlim", xlim, "xlimmode", "auto");
     else
       xlim = axis_obj.xlim;
     endif
@@ -480,7 +480,7 @@
 
     if (yautoscale && have_data)
       ylim = get_axis_limits (ymin, ymax, yminp, ylogscale);
-      set (h, "ylim", ylim);
+      set (h, "ylim", ylim, "ylimmode", "auto");
     else
       ylim = axis_obj.ylim;
     endif
@@ -489,7 +489,7 @@
     if (nd == 3)
       if (zautoscale && have_data)
 	zlim = get_axis_limits (zmin, zmax, zminp, zlogscale);
-	set (h, "zlim", zlim);
+	set (h, "zlim", zlim, "zlimmode", "auto");
       else
 	zlim = axis_obj.zlim;
       endif