changeset 7297:ec1f6f8baf94

[project @ 2007-12-11 21:25:52 by jwe]
author jwe
date Tue, 11 Dec 2007 21:25:53 +0000
parents c06476bb301d
children d42d8c43d3e7
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Dec 11 21:21:33 2007 +0000
+++ b/scripts/ChangeLog	Tue Dec 11 21:25:53 2007 +0000
@@ -1,5 +1,8 @@
 2007-12-11  John W. Eaton  <jwe@octave.org>
 
+	* plot/__go_draw_axes__.m: Always use "set grid front".  Send a
+	subsequent "unset grid" if there is no grid.
+
 	* plot/__go_draw_axes__.m: Include "front" in "set label" options.
 
 	* plot/surface.m: Don't set facecolor property in call to
--- a/scripts/plot/__go_draw_axes__.m	Tue Dec 11 21:21:33 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Tue Dec 11 21:25:53 2007 +0000
@@ -241,8 +241,11 @@
       fputs (plot_stream, "set grid nomztics;\n");
     endif
 
-    if (have_grid)
-      fputs (plot_stream, "set grid front;\n");
+    ## Unless we force the grid to the front, tics may appear below
+    ## plotted objects.
+    fputs (plot_stream, "set grid front;\n");
+    if (! have_grid)
+      fputs (plot_stream, "unset grid;\n");
     endif
 
     do_tics (axis_obj, plot_stream, ymirror, mono);