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
Example session:
$ python -c 'import matplotlib as mpl; mpl.use("agg"); import matplotlib.pyplot; mpl.use("qt5agg")'
-c:1: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
The backend was *originally* set to 'agg' by the following code:
File "<string>", line 1, in <module>
File "/home/antony/src/extern/matplotlib/lib/matplotlib/pyplot.py", line 68, in <module>
from matplotlib.backends import pylab_setup
File "/home/antony/src/extern/matplotlib/lib/matplotlib/backends/__init__.py", line 14, in <module>
line for line in traceback.format_stack()
(In practice, you'd expect the two calls to be further apart from each
other, of course.)
Note that the *current* traceback can be accessed by standard means,
e.g. by setting the warnings filter.
Not sure how easy this is to test.
0 commit comments