Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Adjust number of ticks based on length of axis#5588
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lib/matplotlib/ticker.py Outdated
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.
need to over-rideset_params and black-listnbins there as well.
tacaswell commentedDec 1, 2015
|
mdboom commentedDec 1, 2015
You mean, raise an exception if it's there? |
tacaswell commentedDec 1, 2015
Yes On Tue, Dec 1, 2015 at 6:22 PM Michael Droettboomnotifications@github.com
|
mdboom commentedDec 1, 2015
Done. |
efiring commentedDec 2, 2015
Does this mean that the default will now always be AutoLocator? And that a user will no longer be able to use |
mdboom commentedDec 2, 2015
@efiring: That's a good point. I've simplified this so that |
tacaswell commentedDec 2, 2015
It might be better to use the string 'auto' as the default? It is clearer On Wed, Dec 2, 2015, 07:54 Michael Droettboomnotifications@github.com
|
mdboom commentedDec 2, 2015
Sure. |
WeatherGod commentedDec 2, 2015
Right, "auto" is better for meaning automatic, meanwhile, None can continue On Wed, Dec 2, 2015 at 8:24 AM, Michael Droettboom <notifications@github.com
|
efiring commentedDec 2, 2015
Good. Now, I am wondering whether there is any point in making the additional |
mdboom commentedDec 2, 2015
|
fed1ae3 to0920ddcComparemdboom commentedDec 9, 2015
Just rebased. I think this is good-to-go once Travis passes. |
mdboom commentedDec 14, 2015
And... it's green (on Travis) |
Adjust number of ticks based on length of axis
efiring commentedDec 14, 2015
@mdboom, I suspect some corner cases will turn up and tweaks might be needed, but I think it makes sense to merge this so that it will get more exercise. |
mdboom commentedDec 14, 2015
Agreed. Thanks. |
tacaswell commentedDec 17, 2015
This was merged to master, but the merge is in the v2.0.x branch. Ithink something fishy went on aroundb7c7c5e but I am not sure. |
Adjust number of ticks based on length of axis
tacaswell commentedDec 20, 2015
backported as7488da6 |
efiring commentedDec 21, 2015
@mdboom, I finally took a look to see what this does on master, with a minimal plot |
mdboom commentedDec 22, 2015
@efiring: You're suggesting a hard maximum? Just adding more space is unlikely to be a good fix, since in cases with many small axes you do want to allow the ticks to get reasonably close together. |
efiring commentedDec 22, 2015
Yes, a hard maximum is what I had in mind. Then the behavior would not change for the default single-axes-per-figure case, but the multiple axes case would still be supported. |
efiring commentedDec 22, 2015
Of course that hard maximum could be controllable with yet another rcParam if necessary. We didn't have one for that before, though. |
mdboom commentedDec 22, 2015
I'm fine with just setting the max to the old hard-coded value (which appears to be 9) and we can always add an rcParam later if people want more control. |
Follow on to#5494.