Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged

Conversation

efiring
Copy link
Member

@efiring efiring commented Jun 2, 2019

Closes #14060.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@efiring efiring added this to the v3.2.0 milestone Jun 3, 2019
@@ -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.
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
locations. They may be masked.
locations. *U* and *V* may be masked. Only locations unmasked in *U*, *V*, and *C* will be drawn.

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is likely true...

Copy link
Member

@tacaswell tacaswell left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quiver(C=...) argument is not reasonably validated
5 participants