Mercurial > octave
diff scripts/plot/draw/private/__quiver__.m @ 27106:6bfd3a890185
Consolidate separate calls to set() in to one call for interpreter efficiency.
* rgbplot.m, annotation.m, legend.m, orient.m, colorbar.m, __bar__.m,
__contour__.m, __errplot__.m, __quiver__.m, __stem__.m, shrinkfaces.m,
__actual_axis_position__.m, hgtransform.m, __gnuplot_draw_axes__.m,
__gnuplot_draw_figure__.m:
Consolidate separate calls to set() in to one call for interpreter efficiency.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 23 May 2019 13:56:23 -0700 |
parents | 7f605f88d1e3 |
children | 0157c4d4792e |
line wrap: on
line diff
--- a/scripts/plot/draw/private/__quiver__.m Thu May 23 12:48:18 2019 -0700 +++ b/scripts/plot/draw/private/__quiver__.m Thu May 23 13:56:23 2019 -0700 @@ -393,8 +393,8 @@ zend = z + w(:); endif - set (kids(3), "xdata", [x.'; xend.'; NaN(1, length (x))](:)); - set (kids(3), "ydata", [y.'; yend.'; NaN(1, length (y))](:)); + set (kids(3), "xdata", [x.'; xend.'; NaN(1, length (x))](:), + "ydata", [y.'; yend.'; NaN(1, length (y))](:)); if (is3d) set (kids(3), "zdata", [z.'; zend.'; NaN(1, length (z))](:)); endif @@ -417,20 +417,19 @@ yarrw2 = ytmp + u(:) * arrowsize / 3; endif - set (kids(2), "xdata", [x.'; xend.'; NaN(1, length (x))](:)); - set (kids(2), "ydata", [y.'; yend.'; NaN(1, length (y))](:)); + set (kids(2), "xdata", [x.'; xend.'; NaN(1, length (x))](:), + "ydata", [y.'; yend.'; NaN(1, length (y))](:)); if (is3d) set (kids(2), "zdata", [z.'; zend.'; NaN(1, length (z))](:)); endif - set (kids(2), "xdata", [xarrw1.'; xend.'; xarrw2.'; NaN(1, length (x))](:)); - set (kids(2), "ydata", [yarrw1.'; yend.'; yarrw2.'; NaN(1, length (y))](:)); + set (kids(2), "xdata", [xarrw1.'; xend.'; xarrw2.'; NaN(1, length (x))](:), + "ydata", [yarrw1.'; yend.'; yarrw2.'; NaN(1, length (y))](:)); if (is3d) set (kids(2), "zdata", [zarrw1.'; zend.'; zarrw2.'; NaN(1, length (z))](:)); endif - set (kids(1), "xdata", x); - set (kids(1), "ydata", y); + set (kids(1), "xdata", x, "ydata", y); if (is3d) set (kids(1), "zdata", z); endif