-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Feature request: auto locate minor ticks on log scaled color bar #7141
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
Comments
Can you please provide a picture? Might be easier to evaluate what you're after that way. |
Thanks, @Kojoley. The trouble is, I have tried using
Thus, this seems to be a little more than a simple change to the default settings. |
attn @efiring |
On current
|
Closed by #7438. |
I am glad to see that minor ticks are placed properly now, but tick length on minor tick should be shorter than major ticks, IMHO. That's how it used to be (see Kojoley's Sep 20th post). Perhaps the minor tick length is just a rcParams setting... |
No, it will take more work to fix that. It won't happen for 2.0. It requires substantial change to the colorbar tick-handling, which differs from normal axis tick handling because there is an additional transformation between the colorbar tick values and the axis coordinates. The colorbar does not support major and minor ticks; it has only major ticks. It has a single |
Ok. Thank you for the detailed reply. I probably would have spent 30 minutes figuring that out on my own. |
…atplotlib 1.5.1, but no longer appear to be needed. (For example, matplotlib/matplotlib#7141 is now resolved.)
Uh oh!
There was an error while loading. Please reload this page.
Matplotlib version 1.5.1, Python version 2.7.6 (Enthought Canopy) and OSX
As detailed in this stack overflow post, you have to explicitly specify the minor tick locations on a log scaled color bar. It would be nice if matplotlib would do this for you, instead of having to call
minorticks = p.norm(np.hstack([np.arange(2, 10, 1)/10.0, np.arange(2, 10, 1)/1.0])
in the code belowThe text was updated successfully, but these errors were encountered: