You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ENH]: Compute ticks of log scaled axes a bit better? #29414
Taken from here, I found the following ticks (from plt.semilogy([1.5, 50])):
Not informative enough. I wish there was an easy way to set_minor_formatter such that say e.g 2x10^0, 3x10^0 would have been displayed. I tried to use (full MWE this time):
But I'm sure it is not very versatile. It produces:
Which is not bad.
Proposed solution
I'd like to first explain in the docs / fix the behavior of set_minor_formatter(ticker.LogFormatter(base=10, labelOnlyBase=True)). 2ndly, I'd like to discuss the possibility of adding tick labels as shown above, because I think I'm not the only one that was not satisfied by this default behavior.
Activity
anntzer commentedon Jan 6, 2025
This may have been improved by #29054 (which will be in mpl3.11)?
doronbehar commentedon Jan 7, 2025
This is perfect! Thanks for the quick reply and for the link.