I would like to manually set the matplotlib backend in Anaconda Spyder using the following commands:
import matplotlib matplotlib.use('qt5agg') However when I try, I get the following warning, and I can verify that I did not successfully set the backend.
>import matplotlib >matplotlib.use('qt5agg') /home/selah/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py:1405: 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. warnings.warn(_use_error_msg) If I run ipython from the command line without using Anaconda I can set the backend successfully.
I need to specify the backend in order to successfully run %matplotlib qt
qt5agg(instead ofautomatic) there.)