comparison scripts/plot/plotmatrix.m @ 17129:b5d6314314fc

Change various plot functions to take advantage of new isaxes() function. * scripts/geometry/voronoi.m, scripts/image/imagesc.m, scripts/plot/__plt_get_axis_arg__.m, scripts/plot/axes.m, scripts/plot/cla.m, scripts/plot/colorbar.m, scripts/plot/hold.m, scripts/plot/legend.m, scripts/plot/plotmatrix.m, scripts/plot/plotyy.m, scripts/plot/private/__errplot__.m, scripts/plot/private/__plt__.m, scripts/plot/view.m: Use new isaxes function to simplify code. * scripts/plot/shading.m: Use Octave convention for spacing of parentheses. * scripts/plot/zlabel.m: Correct %!test incorrectly calling plot3 with figure handle.
author Rik <rik@octave.org>
date Wed, 31 Jul 2013 16:27:49 -0700
parents eaab03308c0b
children 6ba5b1dadd61
comparison
equal deleted inserted replaced
17128:7649779e6ebd 17129:b5d6314314fc
107 107
108 108
109 function plotmatrixdelete (h, d, ax) 109 function plotmatrixdelete (h, d, ax)
110 for i = 1 : numel (ax) 110 for i = 1 : numel (ax)
111 hc = ax(i); 111 hc = ax(i);
112 if (ishandle (hc) && strcmp (get (hc, "type"), "axes") 112 if (isaxes (hc) && strcmpi (get (hc, "beingdeleted"), "off"))
113 && strcmpi (get (hc, "beingdeleted"), "off"))
114 parent = get (hc, "parent"); 113 parent = get (hc, "parent");
115 ## If the parent is invalid or being deleted, then do nothing 114 ## If the parent is invalid or being deleted, then do nothing
116 if (ishandle (parent) && strcmpi (get (parent, "beingdeleted"), "off")) 115 if (ishandle (parent) && strcmpi (get (parent, "beingdeleted"), "off"))
117 delete (hc); 116 delete (hc);
118 endif 117 endif