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
Ticklabel format not preserved after editing plot limits #6276
changing the limits of the plot using the green checkbox widget in the NavigationToolbar will remove the scientific notation formatting that was just set. This would be a huge convenience for users who use scientific notation and want to work with plots interactively. Example:
import matplotlib
matplotlib.use("Qt5Agg")
from numpy import *
from matplotlib.pyplot import *
from numpy.random import uniform
npts = 1000
x = uniform(-100, 100, npts)
y = 1000*sin(x)*cos(x**2)
plot(x, y)
ticklabel_format(style='sci', axis='both', scilimits=(0,0))
show()
Activity
tacaswell commentedon Apr 8, 2016
It is the
set_*scalecalls which remove the formatting.FIX: do not always reset scales from igureoptions
FIX: do not always reset scales from igureoptions
gepcel commentedon Apr 24, 2016
I think this might be relevant.
works fine. But if
ticklabel_formatis put beforeset_major_formatter, it doesn't work.FIX: do not always reset scales from igureoptions
FIX: do not always reset scales from igureoptions