[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 13:08:06 -0400 (EDT) |
Follow-up Comment #10, bug #39552 (project octave):
saw that. you're replacing the figure handle with an axes handle i think.
the following test seems to work, based on axes.m:
%!test <*39552> # Check arrow length and scale factor adjustment.
%! hf = figure ("visible", "on");
unwind_protect
%! [x,y] = meshgrid (1:2:20);
%! u = sin (2*pi*x/10);
%! v = sin (2*pi*y/10);
%! hax = quiver (x(4,4), y(4,4), u(4,4), v(4,4), 1);
%! xendpoint = get (get (hax, "children")(3), "xdata")(2);
%! assert (xendpoint, x(4,4) + u(4,4), eps);
%! hax = quiver (x(4,4), y(4,4), u(4,4), v(4,4), 0.5);
%! xendpoint = get (get (hax, "children")(3), "xdata")(2);
%! assert (xendpoint, x(4,4) + 0.5*u(4,4), eps);
%! unwind_protect_cleanup
%! close (hf);
%! end_unwind_protect
making a simpler test to check multiple arrow scaling too.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?39552>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Markus Mützel, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Markus Mützel, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Dmitri A. Sergatskov, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Dmitri A. Sergatskov, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Dmitri A. Sergatskov, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Dmitri A. Sergatskov, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19
- [Octave-bug-tracker] [bug #39552] quiver/quiver3 ignores scale with only one point to plot, Nicholas Jankowski, 2023/04/19