Mercurial > hg > octave-lyh
diff scripts/plot/__go_draw_axes__.m @ 8953:a6945f92b868
__go_draw_axes__.m: Unset the {x,y,z}ticks when initializing\n\teach axis. Set ticklabels when the ticklabels are empty and when\n\tticklabelmode=="manual".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 11 Mar 2009 00:39:02 -0400 |
parents | 4a312440b262 |
children | e15f4197d907 |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -79,7 +79,15 @@ endif endif + ## Reset all labels, axis-labels, tick-labels, and title + ## FIXME - We should have an function to initialize the axis. + ## Presently, this is dispersed in this function. fputs (plot_stream, "unset label;\n"); + fputs (plot_stream, "unset xtics;\n"); + fputs (plot_stream, "unset ytics;\n"); + fputs (plot_stream, "unset ztics;\n"); + fputs (plot_stream, "unset x2tics;\n"); + fputs (plot_stream, "unset x2tics;\n"); if (! isempty (axis_obj.title)) t = get (axis_obj.title); @@ -1514,7 +1522,7 @@ if (strcmpi (ticmode, "manual") || strcmpi (labelmode, "manual")) if (isempty (tics)) fprintf (plot_stream, "unset %stics;\nunset m%stics;\n", ax, ax); - elseif (strcmpi (labelmode, "manual") && ! isempty (labels)) + elseif (strcmpi (labelmode, "manual")) if (ischar (labels)) labels = cellstr (labels); endif