# HG changeset patch # User David Bateman # Date 1207273178 14400 # Node ID da1f4bc7cbe8a24ab60202f00c9cf7d274a8e5d1 # Parent 4a01572f42685ce2da8e3f83b498eb5c96b50206 Conditionally set 'set pm3d implicit' diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,17 @@ +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. + + * deprecated/splchol.m deprecated/lchol.m deprecated/spfind.m + deprecated/spchol.m deprecated/spmin.m deprecated/spmax.m + deprecated/spdet.m deprecated/splu.m deprecated/spqr.m + deprecated/spatan2.m deprecated/spchol2inv.m + deprecated/spcholinv.m deprecated/spcumprod.m deprecated/spdiag.m + deprecated/spinv.m deprecated/spcumsum.m deprecated/spprod.m + deprecated/spsum.m deprecated/spsumsq.m: New files + * deprecated/Makefile.in (SOURCES): Add them here. + 2008-04-03 Ben Abbott * sparse/spaugment.m: Increase test script tolerance. @@ -13,17 +27,6 @@ * optimization/lsqnonneg.m: New function. * optimization/Makefile.in (SOURCES): Add it to the list. -2008-04-03 David Bateman - - * deprecated/splchol.m deprecated/lchol.m deprecated/spfind.m - deprecated/spchol.m deprecated/spmin.m deprecated/spmax.m - deprecated/spdet.m deprecated/splu.m deprecated/spqr.m - deprecated/spatan2.m deprecated/spchol2inv.m - deprecated/spcholinv.m deprecated/spcumprod.m deprecated/spdiag.m - deprecated/spinv.m deprecated/spcumsum.m deprecated/spprod.m - deprecated/spsum.m deprecated/spsumsq.m: New files - * deprecated/Makefile.in (SOURCES): Add them here. - 2008-04-02 David Bateman * sparse/spaugment.m: New function 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