octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot
Date: Wed, 19 Apr 2023 12:12:20 -0400 (EDT)

Follow-up Comment #7, bug #39552 (project octave):

ok, plan to add the following BIST:


%!test <*39552>
%! [x,y] = meshgrid (1:2:20);
%! u = sin (2*pi*x/10);
%! v = sin (2*pi*y/10);
%! ## Single arrow, check arrow length and scale factor adjustment
%! h = quiver (x(4,4), y(4,4), u(4,4), v(4,4), 1);
%! axis ([0, 20, 0, 20]);
%! xendpoint1 = get (get (h, "children")(3), "xdata")(2);
%! assert (xendpoint1, x(4,4) + u(4,4), eps);
%! h = quiver (x(4,4), y(4,4), u(4,4), v(4,4), 0.5);
%! axis ([0, 20, 0, 20]);
%! xendpoint2 = get (get (h, "children")(3), "xdata")(2);
%! assert (xendpoint2, x(4,4) + 0.5*u(4,4), eps);

this passes, but i have to remember how we decided to best silence plots in
BISTs. 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?39552>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]