-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: update axes_demo to directly manipulate fig, ax #14934
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
Conversation
Directly call method on each individual axis; instead of the global ``plt.`` one, same to create inset; directly refer to the figure on which wee create an inset. I also use some more explicit renaming for each axis, and remove assignments on the LHS when those were unused as it seem like a distraction on the subject at hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this PR also make reference to ax.inset_axes
and the axes grid one, just so folks have the other ways to do this automagically?
You mean Just refer to it in the leading text ? Or use them in the code. Can we use ":ref:" with examples ? |
To answer myself likely yes
|
Prefer :doc: to :ref:, per #11312. |
Done. |
Thanks. |
…934-on-v3.1.1-doc Backport PR #14934 on branch v3.1.1-doc (DOC: update axes_demo to directly manipulate fig, ax)
…934-on-v3.1.x Backport PR #14934 on branch v3.1.x (DOC: update axes_demo to directly manipulate fig, ax)
PR Summary
Directly call method on each individual axis; instead of the global
plt.
one, same to create inset; directly refer to the figure onwhich wee create an inset.
I also use some more explicit renaming for each axis,
and remove assignments on the LHS when those were unused as it seem like
a distraction on the subject at hand.
PR Checklist