Mercurial > octave-nkf
diff scripts/plot/__go_draw_axes__.m @ 7307:28a9e3d3bf14
[project @ 2007-12-12 18:44:35 by jwe]
author | jwe |
---|---|
date | Wed, 12 Dec 2007 18:44:35 +0000 |
parents | ec1f6f8baf94 |
children | fac781a4078d |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m Wed Dec 12 16:47:07 2007 +0000 +++ b/scripts/plot/__go_draw_axes__.m Wed Dec 12 18:44:35 2007 +0000 @@ -241,9 +241,13 @@ fputs (plot_stream, "set grid nomztics;\n"); endif - ## Unless we force the grid to the front, tics may appear below - ## plotted objects. - fputs (plot_stream, "set grid front;\n"); + ## The grid front/back/layerdefault option also controls the + ## appearance of tics, so it is used even if the grid is absent. + if (strcmpi (axis_obj.layer, "top")) + fputs (plot_stream, "set grid front;\n"); + else + fputs (plot_stream, "set grid layerdefault;\n"); + endif if (! have_grid) fputs (plot_stream, "unset grid;\n"); endif