# HG changeset patch # User jwe # Date 1192810325 0 # Node ID 258dd5c9bfe0b290e0e81ebf6e5eb18ae496e0c1 # Parent 4482ba9814b780af7d241e91c66b12fd2a0179b4 [project @ 2007-10-19 16:12:04 by jwe] diff -r 4482ba9814b7 -r 258dd5c9bfe0 scripts/ChangeLog --- a/scripts/ChangeLog Fri Oct 19 16:05:49 2007 +0000 +++ b/scripts/ChangeLog Fri Oct 19 16:12:05 2007 +0000 @@ -1,3 +1,7 @@ +2007-10-19 David Bateman + + * plot/__bar__.m: Call newplot as needed. + 2007-10-17 Carlo de Falco * plot/print.m: Handle -textspecial and -textnormal flags for fig diff -r 4482ba9814b7 -r 258dd5c9bfe0 scripts/plot/__bar__.m --- a/scripts/plot/__bar__.m Fri Oct 19 16:05:49 2007 +0000 +++ b/scripts/plot/__bar__.m Fri Oct 19 16:12:05 2007 +0000 @@ -144,8 +144,10 @@ if (vertical) if (nargout < 1) + newplot (); patch (xb, yb, newargs {:}); elseif (nargout < 2) + newplot (); varargout{1} = patch (xb, yb, newargs {:}); else varargout{1} = xb; @@ -153,8 +155,10 @@ endif else if (nargout < 1) + newplot (); patch (yb, xb, newargs{:}); elseif (nargout < 2) + newplot (); varargout{1} = patch (yb, xb, newargs{:}); else varargout{1} = yb;