# HG changeset patch # User David Bateman # Date 1207273287 14400 # Node ID 5892d5533b2ba24fd8796226797cf70eb3c050cb # Parent cf2fc7338195120e0de93279316fb70c52be6a4e Conditionally set 'set pm3d implicit' diff -r cf2fc7338195 -r 5892d5533b2b scripts/ChangeLog --- a/scripts/ChangeLog Thu Apr 03 14:09:49 2008 -0400 +++ b/scripts/ChangeLog Thu Apr 03 21:41:27 2008 -0400 @@ -1,3 +1,8 @@ +2008-04-03 David Bateman + + * plot/__go_draw_axes__.m: Conditionally "set pm3d implict" for 2D + plot or 3D plots with more than one line. + 2008-04-02 John W. Eaton * plot/Makefile.in (SOURCES): Add __plt2sv__.m and __plt2vs__.m to diff -r cf2fc7338195 -r 5892d5533b2b scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Thu Apr 03 14:09:49 2008 -0400 +++ b/scripts/plot/__go_draw_axes__.m Thu Apr 03 21:41:27 2008 -0400 @@ -64,7 +64,6 @@ fputs (plot_stream, "set size noratio;\n"); endif - fputs (plot_stream, "set pm3d implicit;\n"); fputs (plot_stream, "unset label;\n"); if (! isempty (axis_obj.title)) @@ -1000,6 +999,14 @@ endfor + ## This is need to prevent warnings for rotations in 3D plots, while + ## allowing colorbars with contours.. + if (nd == 2 || data_idx > 1) + fputs (plot_stream, "set pm3d implicit;\n"); + else + fputs (plot_stream, "set pm3d explicit;\n"); + endif + if (isnan(hidden_removal) || hidden_removal) fputs (plot_stream, "set hidden3d;\n"); else