Doc: spines arrows example#17180
Merged
ImportanceOfBeingErnest merged 1 commit intoApr 18, 2020
Merged
Conversation
6 tasks
QuLogic
approved these changes
Apr 17, 2020
anntzer
reviewed
Apr 17, 2020
| 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. |
Contributor
There was a problem hiding this comment.
I would suggest warning more explicitly against using axisartist unless you know you really need it, given its limitations.
tacaswell
approved these changes
Apr 17, 2020
tacaswell
left a comment
Member
There was a problem hiding this comment.
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
westurner
reviewed
Sep 12, 2020
| # 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.
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.
... Aesthetically, arrows on both ends of each axis are probably what most math teachers are looking for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Replacement for #17170. (see discussion there)
Closes #17157
PR Checklist