-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Doc: spines arrows example #17180
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
Doc: spines arrows example #17180
Conversation
This example shows some configurations for axis style. | ||
|
||
Note: If you want to obtain arrow heads at the ends of the axes, also check | ||
out the :doc:`/gallery/recipes/centered_spines_with_arrows` example. |
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.
I would suggest warning more explicitly against using axisartist unless you know you really need it, given its limitations.
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.
I'm happy with this as-is and leave to @ImportanceOfBeingErnest to decide if we should add more notes of caution or not.
anyone can merge on CI green.
64d5297
to
f0b7d52
Compare
f0b7d52
to
31a4591
Compare
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 selfmerge postci
# right/top of the axes). Also, disable clipping (clip_on=False) as the marker | ||
# actually spills out of the axes. | ||
ax.plot(1, 0, ">k", transform=ax.get_yaxis_transform(), clip_on=False) | ||
ax.plot(0, 1, "^k", transform=ax.get_xaxis_transform(), clip_on=False) |
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.
Does something like this add arrows on the other ends of the axes, as well? (For when axes are lines instead of only rays)
ax.plot(0, 0, "<k", transform=ax.get_yaxis_transform(), clip_on=False)
ax.plot(0, 0, "vk", transform=ax.get_xaxis_transform(), clip_on=False)
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.
... Aesthetically, arrows on both ends of each axis are probably what most math teachers are looking for
PR Summary
Replacement for #17170. (see discussion there)
Closes #17157
PR Checklist