comparison scripts/plot/patch.m @ 13124:2ea1658ad049

Don't use explicit figure number for tests to avoid interference with any figures opened by user. (plot/allchild.m, plot/ancestor.m, plot/cla.m, plot/clf.m, plot/close.m, plot/findall.m, plot/findobj.m, plot/gca.m, plot/gcf.m, plot/hggroup.m, plot/isfigure.m, plot/line.m, plot/loglog.m, plot/patch.m, plot/semilogx.m, plot/semilogy.m, plot/surface.m, plot/view.m, plot/whitebg.m, plot/xlim.m, plot/ylim.m, plot/zlim.m): Don't use explicit figure numer 1232 any more.
author Kai Habel <kai.habel@gmx.de>
date Sun, 11 Sep 2011 18:48:06 +0200
parents cd808de114c1
children e81ddf9cacd5
comparison
equal deleted inserted replaced
13123:6efa1a691713 13124:2ea1658ad049
151 %! patch('Vertices', vertices, 'Faces', faces, ... 151 %! patch('Vertices', vertices, 'Faces', faces, ...
152 %! 'FaceVertexCData', jet(5), 'FaceColor', 'interp') 152 %! 'FaceVertexCData', jet(5), 'FaceColor', 'interp')
153 %! view (-37.5, 30) 153 %! view (-37.5, 30)
154 154
155 %!test 155 %!test
156 %! hf = figure (1232, "visible", "off"); 156 %! hf = figure ("visible", "off");
157 %! unwind_protect 157 %! unwind_protect
158 %! h = patch; 158 %! h = patch;
159 %! assert (findobj (hf, "type", "patch"), h); 159 %! assert (findobj (hf, "type", "patch"), h);
160 %! assert (get (h, "xdata"), [0; 1; 1], eps); 160 %! assert (get (h, "xdata"), [0; 1; 1], eps);
161 %! assert (get (h, "ydata"), [0; 0; 1], eps); 161 %! assert (get (h, "ydata"), [0; 0; 1], eps);