# HG changeset patch # User David Bateman # Date 1219244367 14400 # Node ID 72ceeae0f6b23589a3f7c44e9e367482b1140395 # Parent 2ca993580acaf32d052b08ef8d9d4baa0dae72cc Fix for meshed surfaces with more than one oobject per plot diff -r 2ca993580aca -r 72ceeae0f6b2 scripts/ChangeLog --- a/scripts/ChangeLog Tue Aug 19 16:15:52 2008 -0400 +++ b/scripts/ChangeLog Wed Aug 20 10:59:27 2008 -0400 @@ -1,3 +1,8 @@ +2008-08-20 David Bateman + + * plot/__go_draw_axes__.m: Don't set pm3d implicit if the plot + contains a surface. Fixes things like meshc(peaks()). + 2008-08-19 Jaroslav Hajek * optimization/glpk.m: Fix invalid call to zeros. diff -r 2ca993580aca -r 72ceeae0f6b2 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Tue Aug 19 16:15:52 2008 -0400 +++ b/scripts/plot/__go_draw_axes__.m Wed Aug 20 10:59:27 2008 -0400 @@ -1001,7 +1001,7 @@ ## This is need to prevent warnings for rotations in 3D plots, while ## allowing colorbars with contours.. - if (nd == 2 || data_idx > 1) + if (nd == 2 || (data_idx > 1 && !view_map)) fputs (plot_stream, "set pm3d implicit;\n"); else fputs (plot_stream, "set pm3d explicit;\n");