8000 Add fig.add_artist method by ImportanceOfBeingErnest · Pull Request #11234 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Add fig.add_artist method #11234

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
Jul 19, 2018

Conversation

ImportanceOfBeingErnest
Copy link
Member
@ImportanceOfBeingErnest ImportanceOfBeingErnest commented May 11, 2018

PR Summary

As quickly discussed on gitter, an add_artist() of Figure may be useful in some cases.
This PR would add such method.

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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)

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.

Looks great asside frm the small formatting issues! Thanks!

Add any :class:`~matplotlib.artist.Artist` to the figure.

If the added artist has no transform set to it previously, its
transform will be set to ``transFigure``.
Copy link
Member

Choose a reason for hiding this comment

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

figure.transFigure?

Copy link
Member