Skip to content

dynamic ticking (#5588) should avoid (if possible) single ticks #5784

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

Closed
anntzer opened this issue Jan 2, 2016 · 5 comments
Closed

dynamic ticking (#5588) should avoid (if possible) single ticks #5784

anntzer opened this issue Jan 2, 2016 · 5 comments
Assignees
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Jan 2, 2016

There's only one xtick left in statistics/violinplot_demo.py after #5588 got merged:
violinplot
Compare with before the patch:
violinplot_old
The old xticks were perhaps a bit cramped but there's clearly room for, say, two more xticks in the new output.
(On the other hand, this helped me catch a bug in offset text calculation logic when there's a single tick, so it's not all that bad...)

@tacaswell tacaswell added this to the next major release (2.0) milestone Jan 2, 2016
@tacaswell
Copy link
Member

This also starts to touch on the need for categorical axis support.

@tacaswell
Copy link
Member

I think this is also partially addressed by #5772

@tacaswell
Copy link
Member

@efiring
Copy link
Member

efiring commented May 28, 2016

I think that improving this without practically defeating the 'auto' functionality requires a combination of setting a lower bound for the upper bound value, as in #6470, combined with letting the Locator switch to a larger set of "nice" intervals from which to choose. The larger the set of intervals, the easier it is to fit in a target number of ticks. The problem is that unless this larger set is exposed as yet another kwarg and rcParam, it will lead to surprises--the Locator will do something other than what the user thought she told it to do, with no way to override that behavior. In other words, it adds another layer of complexity.

efiring added a commit to efiring/matplotlib that referenced this issue Jun 13, 2016
This requires falling back on a larger set of options for intervals
between ticks.

Closes matplotlib#5784.
efiring added a commit to efiring/matplotlib that referenced this issue Jun 14, 2016
This requires falling back on a larger set of options for intervals
between ticks.

Closes matplotlib#5784.
efiring added a commit to efiring/matplotlib that referenced this issue Jun 14, 2016
@efiring
Copy link
Member

efiring commented Jun 15, 2016

With #6584:
violinplot_demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants