# HG changeset patch # User Nicholas R. Jankowski # Date 1681914989 14400 # Node ID 29671873411ace79b1514427abdff9e01150a384 # Parent 619e2314ebbae34a4b3c6b39ed619a855fa27e27 __quiver__.m: Honor scaling factor input for single quiver arrow (bug #39552) * scripts/plot/draw/private/__quiver__.m: Change scaling factor check to include cases where there is only one quiver arrow. * etc/NEWS.9.md: Note quiver change under General Improvements. diff -r 619e2314ebba -r 29671873411a etc/NEWS.9.md --- a/etc/NEWS.9.md Tue Apr 18 19:56:31 2023 -0700 +++ b/etc/NEWS.9.md Wed Apr 19 10:36:29 2023 -0400 @@ -19,6 +19,9 @@ the number of decimal places (the fourth input) retains old behavior for backward compatibility, except that non-integer inputs will no longer error. +- `quiver` now honors the scaling factor input when there is only a single +arrow, whereas the factor was previously ignored in that case. + ### Graphical User Interface ### Graphics backend diff -r 619e2314ebba -r 29671873411a scripts/plot/draw/private/__quiver__.m --- a/scripts/plot/draw/private/__quiver__.m Tue Apr 18 19:56:31 2023 -0700 +++ b/scripts/plot/draw/private/__quiver__.m Wed Apr 19 10:36:29 2023 -0400 @@ -149,7 +149,7 @@ else len = max (sqrt (u(:).^2 + v(:).^2)); endif - if (len > 0 && autoscale && numel (u) > 1) + if (len > 0 && autoscale && numel (u) >= 1) if (isvector (x)) nx = ny = sqrt (length (x)); else