Mercurial > octave-nkf
diff scripts/plot/__go_draw_axes__.m @ 7240:3a695b7adf8e
[project @ 2007-12-03 20:16:36 by dbateman]
author | dbateman |
---|---|
date | Mon, 03 Dec 2007 20:16:36 +0000 |
parents | 3ac12f33cf4b |
children | e8a3e3e33490 |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m Mon Dec 03 20:10:06 2007 +0000 +++ b/scripts/plot/__go_draw_axes__.m Mon Dec 03 20:16:36 2007 +0000 @@ -33,18 +33,20 @@ ## Set axis properties here? pos = [0, 0, 1, 1]; - if (! isempty (axis_obj.outerposition)) - pos = axis_obj.outerposition; - endif - - ymirror = true; - if (! isempty (axis_obj.position)) - pos = axis_obj.position; - fprintf (plot_stream, "set tmargin 3;\n"); - fprintf (plot_stream, "set bmargin 3;\n"); - fprintf (plot_stream, "set lmargin 10;\n"); - fprintf (plot_stream, "set rmargin 10;\n"); + if (strcmp (axis_obj.activepositionproperty, "outerposition")) + ymirror = true; + if (! isempty (axis_obj.outerposition)) + pos = axis_obj.outerposition; + endif + else ymirror = false; + if (! isempty (axis_obj.position)) + pos = axis_obj.position; + fprintf (plot_stream, "set tmargin 0;\n"); + fprintf (plot_stream, "set bmargin 0;\n"); + fprintf (plot_stream, "set lmargin 0;\n"); + fprintf (plot_stream, "set rmargin 0;\n"); + endif endif if (! strcmp (axis_obj.__colorbar__, "none"))