Mercurial > octave
changeset 24147:9fab3273ff26
Remove persistent axes lines of gnuplot toolkit multiple plots (bug #52170, bug #52186).
* __gnuplot_draw_axes__.m: Clear the previous multiplot's axes arrows prior to
setting up the current multiplot's axes arrows.
* __gnuplot_draw_axes__.m (do_border_2d): Ditto.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Sat, 14 Oct 2017 18:16:55 -0500 |
parents | d72ba9191352 |
children | 2e64bed0bb3a |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Oct 04 14:13:49 2017 -0500 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Sat Oct 14 18:16:55 2017 -0500 @@ -132,6 +132,7 @@ ## 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 arrow;\n"); fputs (plot_stream, "unset xtics;\n"); fputs (plot_stream, "unset ytics;\n"); fputs (plot_stream, "unset ztics;\n"); @@ -1811,6 +1812,7 @@ function idx = do_border_2d (obj, plot_stream, idx) fprintf (plot_stream, "set border 0\n"); + fprintf (plot_stream, "unset arrow\n"); if (strcmp (obj.box, "on") || strcmp (obj.xaxislocation, "bottom")) arrow (1, obj.xcolor, obj.linewidth, [0,0,0], [1,0,0]);