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

Skip to content

Let quiver retrieve X, Y from base PolyCollection.get_offsets(). #24952

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 12, 2023

... instead of additionally storing copies locally in self.X, self.Y, self.XY (for quiver), self.x, self.y (for barbs).

Then there's no reason not to also suggest set_offsets in quiver(), like it's already done in barbs().

PR Summary

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

... instead of additionally storing copies locally in
`self.X, self.Y, self.XY` (for quiver), `self.x, self.y` (for barbs).

Then there's no reason not to also suggest set_offsets in quiver(), like
it's already done in barbs().
Comment on lines +451 to +453
orientation, and color of the arrows. Locations are changed using the
(inherited) `.PolyCollection.set_offsets` method. This method may be
useful in animations.
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately I think the behavior is a little bit more complicated than than just using set_offsets due to the interactions of UVC and XY which may be difficult for users to discover. See #22407

@anntzer
Copy link
Contributor Author

anntzer commented Jan 13, 2023

Ah, sorry I missed your PR. Let's put this on hold first.

@anntzer anntzer marked this pull request as draft January 13, 2023 07:02
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.

2 participants