# HG changeset patch # User Konstantinos Poulios # Date 1288773247 -3600 # Node ID ac6a199be45e43fc74311cea4274bf4011058656 # Parent cb9c475b335f5c56e4b96e0da4d53394c1eb88a8 Leave zlim unchanged during 'axis tight' on 2D plots diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-11-03 Konstantinos Poulios + + * plot/axis.m: Leave zlim unchanged during "axis tight" on 2D plots + 2010-11-03 Ben Abbott * miscellaneous/getappdata.m, miscellaneous/isappdata.m, diff --git a/scripts/plot/axis.m b/scripts/plot/axis.m --- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -338,8 +338,10 @@ set (ca, "xlim", __get_tight_lims__ (ca, "x"), - "ylim", __get_tight_lims__ (ca, "y"), - "zlim", __get_tight_lims__ (ca, "z")); + "ylim", __get_tight_lims__ (ca, "y")); + if __calc_dimensions__ (ca) > 2 + set (ca, "zlim", __get_tight_lims__ (ca, "z")); + endif endfunction