comparison scripts/plot/private/__errplot__.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 5d3a684236b0
children abf384f5d243
comparison
equal deleted inserted replaced
17128:7649779e6ebd 17129:b5d6314314fc
196 ## Process legend key 196 ## Process legend key
197 if (! isempty (fmt.key)) 197 if (! isempty (fmt.key))
198 hlegend = []; 198 hlegend = [];
199 fkids = get (gcf (), "children"); 199 fkids = get (gcf (), "children");
200 for i = 1 : numel (fkids) 200 for i = 1 : numel (fkids)
201 if (ishandle (fkids(i)) && strcmp (get (fkids(i), "type"), "axes") 201 if ( strcmp (get (fkids(i), "type"), "axes")
202 && (strcmp (get (fkids(i), "tag"), "legend"))) 202 && strcmp (get (fkids(i), "tag"), "legend"))
203 udata = get (fkids(i), "userdata"); 203 udata = get (fkids(i), "userdata");
204 if (! isempty (intersect (udata.handle, gca ()))) 204 if (! isempty (intersect (udata.handle, gca ())))
205 hlegend = fkids (i); 205 hlegend = fkids (i);
206 break; 206 break;
207 endif 207 endif