Mercurial > hg > octave-nkf
changeset 10451:348b26872fc8
Fix bug with logscale in combination with colorbar
author | Petr Mikulik <mikulik@physics.muni.cz> |
---|---|
date | Wed, 24 Mar 2010 20:35:44 +0100 |
parents | 91d1e64804e1 |
children | a9677b03632b |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-03-24 Petr Mikulik <mikulik@physics.muni.cz> + + * plot/__go_draw_axes__.m: Unset logscale also for unused gnuplot + axis locations. + 2010-03-24 Jaroslav Hajek <highegg@gmail.com> * help/help.m: Maybe warn about unimplemented Matlab functions.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -281,25 +281,18 @@ do_tics (axis_obj, plot_stream, ymirror, mono, gnuplot_term); + fputs (plot_stream, "unset logscale;\n"); xlogscale = strcmpi (axis_obj.xscale, "log"); + ylogscale = strcmpi (axis_obj.yscale, "log"); + zlogscale = strcmpi (axis_obj.zscale, "log"); if (xlogscale) fprintf (plot_stream, "set logscale %s;\n", xaxisloc); - else - fprintf (plot_stream, "unset logscale %s;\n", xaxisloc); endif - - ylogscale = strcmpi (axis_obj.yscale, "log"); if (ylogscale) fprintf (plot_stream, "set logscale %s;\n", yaxisloc); - else - fprintf (plot_stream, "unset logscale %s;\n", yaxisloc); endif - - zlogscale = strcmpi (axis_obj.zscale, "log"); if (zlogscale) fputs (plot_stream, "set logscale z;\n"); - else - fputs (plot_stream, "unset logscale z;\n"); endif xautoscale = strcmpi (axis_obj.xlimmode, "auto");