Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ImportanceOfBeingErnest
Copy link
Member

PR Summary

Replacement for#17170. (see discussion there)
Closes#17157

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 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)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@QuLogicQuLogic requested a review fromanntzerApril 17, 2020 21:48
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.
Copy link
Contributor

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.

Copy link
Member

@tacaswelltacaswell left a 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.

@ImportanceOfBeingErnestImportanceOfBeingErnestforce-pushed thedoc-spinesarrows branch 2 times, most recently from64d5297 tof0b7d52CompareApril 18, 2020 10:35
Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

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

can selfmerge postci

@ImportanceOfBeingErnestImportanceOfBeingErnest merged commitf369b10 intomatplotlib:masterApr 18, 2020
@ImportanceOfBeingErnestImportanceOfBeingErnest deleted the doc-spinesarrows branchApril 18, 2020 12:15
# 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)

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)

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@westurnerwesturnerwesturner left review comments

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

"Classical" zero-axis plot with arrows and symmetric ticks seems to be impossible
5 participants
@ImportanceOfBeingErnest@westurner@tacaswell@QuLogic@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp