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

Skip to content

Simplify "artist reference" example. #25018

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
merged 1 commit into from
Jan 20, 2023
Merged

Simplify "artist reference" example. #25018

merged 1 commit into from
Jan 20, 2023

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 18, 2023

In particular, add each artist directly to its own axes, instead of shifting each of them by some offset and grouping all of them together in a PatchCollection. Note that this makes the example no longer showcase the use of PatchCollection, but at least based on the docstring that was not the intent of the example anyways, and PatchCollection is showcased elsewhere (in the patch_collection.py example, in particular).

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

@jklymak
Copy link
Member

jklymak commented Jan 18, 2023

Perhaps link to the patch collection example to keep some of the cross linking? We don't do a good enough job of cross linking things so it seems a shame to drop an opportunity here.

In particular, add each artist directly to its own axes, instead of
shifting each of them by some offset and grouping all of them together
in a PatchCollection.  Note that this makes the example no longer
showcase the use of PatchCollection, but at least based on the docstring
that was not the intent of the example anyways, and PatchCollection is
showcased elsewhere (in the patch_collection.py example, in particular).
@anntzer
Copy link
Contributor Author

anntzer commented Jan 18, 2023

sure.

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

Thanks - ping for a merge if I forget - I'll double check that it all looks OK.

@QuLogic QuLogic added this to the v3.7.0 milestone Jan 20, 2023
@QuLogic QuLogic merged commit e6bf91d into matplotlib:main Jan 20, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 20, 2023
rcomer added a commit that referenced this pull request Jan 20, 2023
…018-on-v3.7.x

Backport PR #25018 on branch v3.7.x (Simplify "artist reference" example.)
@anntzer anntzer deleted the ar branch January 20, 2023 14:17
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
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.

3 participants