Mercurial > octave-nkf
comparison scripts/plot/__go_draw_axes__.m @ 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 | 144739908eef |
children | 6a2e4e464d38 |
comparison
equal
deleted
inserted
replaced
10450:91d1e64804e1 | 10451:348b26872fc8 |
---|---|
279 fputs (plot_stream, "unset grid;\n"); | 279 fputs (plot_stream, "unset grid;\n"); |
280 endif | 280 endif |
281 | 281 |
282 do_tics (axis_obj, plot_stream, ymirror, mono, gnuplot_term); | 282 do_tics (axis_obj, plot_stream, ymirror, mono, gnuplot_term); |
283 | 283 |
284 fputs (plot_stream, "unset logscale;\n"); | |
284 xlogscale = strcmpi (axis_obj.xscale, "log"); | 285 xlogscale = strcmpi (axis_obj.xscale, "log"); |
286 ylogscale = strcmpi (axis_obj.yscale, "log"); | |
287 zlogscale = strcmpi (axis_obj.zscale, "log"); | |
285 if (xlogscale) | 288 if (xlogscale) |
286 fprintf (plot_stream, "set logscale %s;\n", xaxisloc); | 289 fprintf (plot_stream, "set logscale %s;\n", xaxisloc); |
287 else | 290 endif |
288 fprintf (plot_stream, "unset logscale %s;\n", xaxisloc); | |
289 endif | |
290 | |
291 ylogscale = strcmpi (axis_obj.yscale, "log"); | |
292 if (ylogscale) | 291 if (ylogscale) |
293 fprintf (plot_stream, "set logscale %s;\n", yaxisloc); | 292 fprintf (plot_stream, "set logscale %s;\n", yaxisloc); |
294 else | 293 endif |
295 fprintf (plot_stream, "unset logscale %s;\n", yaxisloc); | |
296 endif | |
297 | |
298 zlogscale = strcmpi (axis_obj.zscale, "log"); | |
299 if (zlogscale) | 294 if (zlogscale) |
300 fputs (plot_stream, "set logscale z;\n"); | 295 fputs (plot_stream, "set logscale z;\n"); |
301 else | |
302 fputs (plot_stream, "unset logscale z;\n"); | |
303 endif | 296 endif |
304 | 297 |
305 xautoscale = strcmpi (axis_obj.xlimmode, "auto"); | 298 xautoscale = strcmpi (axis_obj.xlimmode, "auto"); |
306 yautoscale = strcmpi (axis_obj.ylimmode, "auto"); | 299 yautoscale = strcmpi (axis_obj.ylimmode, "auto"); |
307 zautoscale = strcmpi (axis_obj.zlimmode, "auto"); | 300 zautoscale = strcmpi (axis_obj.zlimmode, "auto"); |