# HG changeset patch # User Ben Abbott # Date 1323394401 18000 # Node ID 36d6867c85d90a7393c89706e51d89492bf1db96 # Parent 5d5685216876f305de62e2d58977fb6e5d32b259 rectangle.m: Replace "close all" with "clf" in demos to allow "rundemos plot" to run conveniently. diff --git a/scripts/plot/rectangle.m b/scripts/plot/rectangle.m --- a/scripts/plot/rectangle.m +++ b/scripts/plot/rectangle.m @@ -205,17 +205,17 @@ %!demo -%! close all +%! clf %! axis equal %! rectangle ("Position", [0.05, 0.05, 0.9, 0.9], "Curvature", [0.5, 0.5]); %!demo -%! close all +%! clf %! axis equal %! rectangle ("Position", [0.05, 0.05, 0.9, 0.4], "Curvature", 1.0); %!demo -%! close all +%! clf %! axis equal %! h = rectangle ("Position", [0.05, 0.05, 0.9, 0.4], "Curvature", 1.0); %! set (h, "FaceColor", [0, 1, 0]);