diff etc/NEWS.9.md @ 32074:03fe0b635d2e

quiver/quiver3: Overhaul input processing, validation, and add BISTs. * scripts/plot/draw/private/__quiver__.m: Overhaul numeric input validation. Simplify input classification using numeric input count switch statements and avoid quiver3 miscount due to scale factor. Add error messages for all valid numeric input combinations including vector x,y,z and scale factor. Move newplot command from quiver/quiver3 into __quiver__ after numeric input validation. Add hax as an output argument to return any changes back to calling function. * scripts/plot/draw/quiver.m: Remove newplot call. Update __quiver__ call to include hax as a return variable. Update docstring with note that line style and name-value pairs can both be provided but linstyle must appear first. Add BISTs to check standard inputs with single and multiple arrows, arrowhead shape, vector and array inputs, proper treatment of scaling factor "off", some simple input styles, and input validation BISTs to cover all numeric input errors. Added known failing BIST for linestyle+pair arrowhead showing when it should stay off (bug #64143). * scripts/plot/draw/quiver3.m: Remove newplot call. Update __quiver__ call to include hax as a return variable. Update docstring with note that line style and name-value pairs can both be provided but linstyle must appear first. Add BISTs to check standard inputs with single and multiple arrows, vector and array inputs, and input validation BISTs to cover all numeric input errors. * etc/NEWS.9.md: Update quiver/quiver3 improvement description under General Improvements.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Wed, 03 May 2023 22:52:33 -0400
parents ada96a467a28
children 7dcb6b4a4218
line wrap: on
line diff
--- a/etc/NEWS.9.md	Wed May 03 20:45:33 2023 +0200
+++ b/etc/NEWS.9.md	Wed May 03 22:52:33 2023 -0400
@@ -19,11 +19,13 @@
 the number of decimal places (the fourth input) retains old behavior for
 backward compatibility, except that non-integer inputs will no longer error.
 
-- `quiver` and `quiver3` now properly plots non-float numeric inputs by
-internally recasting them to 'double'.  They honor the scaling factor input
-when there is only a single arrow, whereas the factor was previously ignored
-in that case. They also accept a scale factor of "off" which is equivalent to
-setting it to 0.
+- `quiver` and `quiver3` now properly plot non-float numeric inputs by
+internally recasting them to 'double' (bug #59695).  Scaling factor input
+processing is improved, with both functions honoring a previously ignored
+scaling factor input when there is only a single arrow (bug #39552), and
+`quiver3` no longer producing an error when a scaling factor is input
+without x and y inputs. Both functions now also accept a scale factor of
+"off" which is equivalent to setting it to 0.
 
 - The `inputParser` function has been re-architected for a 60% performance
 improvement.