Mercurial > hg > octave-lyh
changeset 12043:2246eadc1bb3 release-3-2-x
__go_draw_axes__.m: also use layer property for plot border
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 25 Jul 2009 16:17:27 +0200 |
parents | 4cd9c36b705e |
children | 8dcae1dfc9a0 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2009-07-17 John W. Eaton <jwe@octave.org> + + * plot/__go_draw_axes__.m: Use "layer" property to decide whether + to send "set border front" or "set border layerdefault" to plot + stream. Don't send "set border front" to plot stream for image data. + 2009-07-21 Jaroslav Hajek <highegg@gmail.com> Version 3.2.2 released.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -267,8 +267,13 @@ ## 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"); + fputs (plot_stream, "set border front;\n"); else fputs (plot_stream, "set grid layerdefault;\n"); + ## FIXME -- the gnuplot help says that "layerdefault" should work + ## for set border too, but it fails for me with gnuplot 4.2.5. So + ## use "back" instead. + fputs (plot_stream, "set border back;\n"); endif if (! have_grid) fputs (plot_stream, "unset grid;\n"); @@ -369,7 +374,6 @@ elseif (strcmpi (obj.cdatamapping, "direct")) cdatadirect = true; endif - fputs (plot_stream, "set border front;\n"); data_idx++; is_image_data(data_idx) = true; parametric(data_idx) = false;