Mercurial > octave
diff etc/NEWS.9.md @ 32062:ada96a467a28
quiver: Improve plotting with non-float numeric inputs (bug #59695)
* scripts/plot/draw/private/__quiver__.m: Change firstnonnumeric check to look
for char instead of numeric to allow for logical inputs. Recast all inputs
up to firstnonnumeric as doubles. Check if firstnonnumeric element is 'off'
and if so set scale factor to 0 and increment firstnonnumeric.
* scripts/plot/draw/quiver.m: Update docstring to include scaling factor
option 'off'. Add BIST for int and logical input types.
* scripts/plot/draw/quiver3.m: Update docstring to include scaling factor
option 'off'. Add BISTs for too-few inputs.
* etc/NEWS.9.md: Appended details of changes to quiver note under General
Improvements and noted it also applies to quiver3.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Wed, 26 Apr 2023 17:18:50 -0400 |
parents | e3de59065cf1 |
children | 03fe0b635d2e |
line wrap: on
line diff
--- a/etc/NEWS.9.md Wed Apr 26 16:29:28 2023 -0700 +++ b/etc/NEWS.9.md Wed Apr 26 17:18:50 2023 -0400 @@ -19,8 +19,11 @@ 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. +- `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. - The `inputParser` function has been re-architected for a 60% performance improvement.