# HG changeset patch # User David Bateman # Date 1289167043 -3600 # Node ID abc0c6b0a4c418c0100a0a9b11d037425e90daad # Parent 91c606a6869369119d5650bdd24c70850c369ebc Remove the call to drawnow in legend diff -r 91c606a68693 -r abc0c6b0a4c4 scripts/ChangeLog --- a/scripts/ChangeLog Sun Nov 07 22:48:50 2010 +0100 +++ b/scripts/ChangeLog Sun Nov 07 22:57:23 2010 +0100 @@ -1,5 +1,7 @@ 2010-11-07 David Bateman + * plot/legend.m: Remove call to drawnow. + * plot/__go_draw_axes__.m: Pass the legend axes as a structure. Test whether the legend axis has any children before using it. * plot/__go_draw_figure.m: Setup a fake axis to handle multi-parent diff -r 91c606a68693 -r abc0c6b0a4c4 scripts/plot/legend.m --- a/scripts/plot/legend.m Sun Nov 07 22:48:50 2010 +0100 +++ b/scripts/plot/legend.m Sun Nov 07 22:57:23 2010 +0100 @@ -418,10 +418,6 @@ box = "off"; endif - ## Force the figure to be drawn here, so that the figure position - ## is updated correctly before reading it - drawnow (); - ## Get axis size and fontsize in points. ## Rely on listener to handle coversion. units = get (ca(1), "units");