/usr/local/lib/python2.6/dist-packages/matplotlib-1.0.1-py2.6-linux-x86_64.egg/matplotlib/__init__.py:888: UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
if warn: warnings.warn(_use_error_msg)
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/tH5mr59C11MJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
If you are executing your script in a dedicated Python interpreter
(default behavior), then Matplotlib will be imported before executing
your script only if the backend option (mentioned by David) is checked
(default value). So, to avoid this, simply uncheck this option, or
choose the backend that you want there (@David: the monitor does not
require Matplotlib at startup).
If you are executing your script in an existing Python interpreter,
with default options, the PYTHONSTARTUP script is the
'scientific_startup.py' script which also imports Matplotlib. But this
can also be changed in Preferences.
Last but not least, I do agree with you David that this kind of
side-effect should be documented somewhere.
Ben, could you tell us where would you have expected this to be documented?
-Pierre