-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ENH: Add argument size validation to quiver. #14424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add argument size validation to quiver. #14424
Conversation
@@ -72,12 +72,16 @@ | |||
U, V : 1D or 2D array-like | |||
The x and y direction components of the arrow vectors. | |||
|
|||
They must have the same number of elements, matching the number of arrow | |||
locations. They may be masked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the same mask or is different allowed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They can be different. The masks are combined so that a masked point in any of U, V, or C is the same as if all were masked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe more precisely
Elements that are masked in U or V are not drawn.
instead of just just
They may be masked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
locations. They may be masked. | |
locations. *U* and *V* may be masked. Only locations unmasked in *U*, *V*, and *C* will be drawn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think commiting this suggested change will cause problems due to the line being too long for flake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is likely true...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a wording suggestion, fine with this going in either with or without it.
Follow up on #14424 for docstring
Closes #14060.
PR Summary
PR Checklist