# HG changeset patch # User John W. Eaton # Date 1234846893 18000 # Node ID a186c5b4f2645f3ab4f35f05631cdc174dbe2819 # Parent e0fbf17a17bb7af7f371dcc9e42f36af9a8771e6 plotyy.m: handle existing figure with no axes diff -r e0fbf17a17bb -r a186c5b4f264 scripts/ChangeLog --- a/scripts/ChangeLog Mon Feb 16 17:01:17 2009 -0500 +++ b/scripts/ChangeLog Tue Feb 17 00:01:33 2009 -0500 @@ -1,3 +1,7 @@ +2009-02-17 John W. Eaton + + * plot/plotyy.m: Handle case of existing figure with no axes. + 2009-02-16 John W. Eaton * help/__makeinfo__.m: Rename from help/makeinfo.m. Delete tmp file. diff -r e0fbf17a17bb -r a186c5b4f264 scripts/plot/plotyy.m --- a/scripts/plot/plotyy.m Mon Feb 16 17:01:17 2009 -0500 +++ b/scripts/plot/plotyy.m Tue Feb 17 00:01:33 2009 -0500 @@ -84,6 +84,9 @@ ax = ax(1:2); elseif (length (ax) == 1) ax(2) = axes (); + elseif (isempty (ax)) + ax(1) = axes (); + ax(2) = axes (); endif endif if (nargin < 2)