# HG changeset patch # User Ben Abbott # Date 1289229577 -28800 # Node ID 83d268af65cbc84754e33f52e32eaf828affe5be # Parent abee8cc4820ff95a93529aa17aae87df1f3dd70b __go_draw_axes__.m: Check for z/y/zdata before converting negative values to NaNs. diff -r abee8cc4820f -r 83d268af65cb scripts/ChangeLog --- a/scripts/ChangeLog Mon Nov 08 16:59:25 2010 +0800 +++ b/scripts/ChangeLog Mon Nov 08 23:19:37 2010 +0800 @@ -1,5 +1,7 @@ 2010-11-08 Ben Abbott + * plot/__go_draw_axes__.m: Check for z/y/zdata before converting + negative values to NaNs. Bug fix for changeset 11201. * plot/daspect.m: Fix demo using both daspect and pbaspect. 2010-11-08 David Bateman diff -r abee8cc4820f -r 83d268af65cb scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Mon Nov 08 16:59:25 2010 +0800 +++ b/scripts/plot/__go_draw_axes__.m Mon Nov 08 23:19:37 2010 +0800 @@ -406,13 +406,13 @@ continue; endif - if (xlogscale) + if (xlogscale && isfield (obj, "xdata")) obj.xdata(obj.xdata<=0) = NaN; endif - if (ylogscale) + if (ylogscale && isfield (obj, "ydata")) obj.ydata(obj.ydata<=0) = NaN; endif - if (zlogscale) + if (zlogscale && isfield (obj, "zdata")) obj.zdata(obj.zdata<=0) = NaN; endif