I2PC / scipion

Scipion is an image processing framework to obtain 3D models of macromolecular complexes using Electron Microscopy (3DEM)
http://scipion.i2pc.es
Other
76 stars 47 forks source link

Ineffective call to matplotlib.use() in matplotlib_image.py in Scipion 1.2.1 #1828

Open akesandgren opened 5 years ago

akesandgren commented 5 years ago

Scipion 1.2.1 complains about the call to matplotlib.use() in matplotlib_image.py line 35

Scipion/1.2.1/pyworkflow/gui/matplotlib_image.py:35: 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.

This shows up at start of scipion.

This is probably a bug some where in that code just as the message indicates, but it might be cause by our module for matplotlib setting the env variable MPLBACKEND=Agg

azazellochg commented 4 years ago

I haven't seen it in scipion 2.0 or 3.0. Anyone else?

pconesa commented 4 years ago

I've been seen this warning locally for some time but not anymore...we'll keep an eye on new developments.