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
Two issues with the axes offset indicator #4445
Comments
If you reach in and change the visibility of the individual The easiest way to turn off the tick labels on an axis (if you are not using sharing any axis) is import matplotlib.ticker as mticker
ax.yaxis.set_major_formatter(mticker.NullFormatter ()) which removes both the labels and the offset label. In the case of Can you add few lines needed in Also: http://matplotlib.org/api/axis_api.html#matplotlib.axis.Axis.get_offset_text |
Sure, I understand and don't expect the API of |
Partially fixes matplotlib#4445.
Consider:
The
x
axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to 1..10 + 1.0000e4, which is IMO much more legible.The
y
axis doesn't show the tick labels, as expected, but the offset indicator ("+1.0001e4") is still there.setp(get_{x,y}ticklabels(), visible=False)
is certainly a commonly used approach (e.g. bySubplotBase.label_outer()
).What I believe the correct solution, which is also set
offsetText
(which can be obtained byget_offset_text()
) to invisible, is a bit obscure (and not mentioned in the docs).The text was updated successfully, but these errors were encountered: