# HG changeset patch # User Konstantinos Poulios # Date 1288773247 -3600 # Node ID ac6a199be45e43fc74311cea4274bf4011058656 # Parent cb9c475b335f5c56e4b96e0da4d53394c1eb88a8 Leave zlim unchanged during 'axis tight' on 2D plots diff -r cb9c475b335f -r ac6a199be45e scripts/ChangeLog --- a/scripts/ChangeLog Wed Nov 03 03:37:59 2010 -0400 +++ b/scripts/ChangeLog Wed Nov 03 09:34:07 2010 +0100 @@ -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 -r cb9c475b335f -r ac6a199be45e scripts/plot/axis.m --- a/scripts/plot/axis.m Wed Nov 03 03:37:59 2010 -0400 +++ b/scripts/plot/axis.m Wed Nov 03 09:34:07 2010 +0100 @@ -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