# HG changeset patch # User David Bateman # Date 1207273287 14400 # Node ID 5892d5533b2ba24fd8796226797cf70eb3c050cb # Parent cf2fc7338195120e0de93279316fb70c52be6a4e Conditionally set 'set pm3d implicit' diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -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