Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
anntzer wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromanntzer:qb

Conversation

anntzer
Copy link
Contributor

... instead of additionally storing copies locally inself.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 (andpytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild 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 indoc/users/next_whats_new/
  • API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • Release notes conform with instructions innext_whats_new/README.rst ornext_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(), likeit'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 usingset_offsets due to the interactions of UVC and XY which may be difficult for users to discover. See#22407

@anntzer
Copy link
ContributorAuthor

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

@anntzeranntzer marked this pull request as draftJanuary 13, 2023 07:02
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ianhiianhiianhi left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@ianhi

[8]ページ先頭

©2009-2025 Movatter.jp