# HG changeset patch # User David Bateman # Date 1219244367 14400 # Node ID 827d4f24ec6cdb6c22971326685ffd3d6d9eca0d # Parent a14bdf90be55ee97ef9916393ed3496f19014a98 Fix for meshed surfaces with more than one oobject per plot diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --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 @@ -1009,7 +1009,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");