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

WIP: Adjust nticks based on length of axis#5494

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

Closed
mdboom wants to merge4 commits intomatplotlib:masterfrommdboom:dynamic-ticking

Conversation

mdboom
Copy link
Member

There's a bit of a chicken and egg problem here. You don't know how many ticks you can fit if you don't know what the tick labels contain. And you don't know what the tick labels contain until you know how many ticks there are.

Therefore this is just based on a heuristic that the text will have an aspect ratio of around 4:1. Probably not always true, and there are perhaps better ways to estimate based on what the tick formatter actually is, or by rendering just one of them and using that.

@mdboommdboom added this to thenext major release (2.0) milestoneNov 16, 2015
@Tillsten
Copy link
Contributor

Very nice to see some work on this, adjusting ticks always takes quite a lot of time. Feature request: ability to disallow ticks near the end of an axis, this is very helpful when stacking axes without any hspace/wspace, because else the ticklabels are overlapping.

@mdboom
Copy link
MemberAuthor

I'm going to close this and move it to the style-change branch. It's not possible to make this backward compatible without some other changes over there.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

2 participants
@mdboom@Tillsten

[8]ページ先頭

©2009-2025 Movatter.jp