|
Hi, The Spyder consoles start already with Matplotlib (and pyplot), NumPy and SciPy imported. This means that you can't change the Matplotlib backend anymore since pyplot/pylab module is already imported when the console starts. Remember that you have to set the Matplotlib backend before importing pyplot. This also explains why in a stand alone python console, one not connected to spyder, does work as you expected: there's not a single external module imported upon startup. To change the Matplotlib backend Spyder uses: Preferences > Console > External modules > Matplotlib GUI backend To my understanding (note that I am not a developer), these imports are done in order to get some of Spyders other features to work (e.g. monitor). I assume that, theoretically, you could disable the Matplotlib/pyplot imports upon the startup of a console, but I am not sure where exactly this should be done in the code, and what other consequences this will have. Maybe a note on Matplotlib backends should be added to the documentation (for instance in the Console section)? I don't mind drafting a proposed change for this somewhere this week. Regards, David On 19/03/12 04:15, ben h wrote:
-- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en. |
- [spyder] This call to matplotlib.use() has no effect ben h
- Re: [spyder] This call to matplotlib.use() has no effe... David Verelst
- Re: [spyder] This call to matplotlib.use() has no ... Pierre Raybaut
- [spyder] Re: This call to matplotlib.use() has... Ben Harrison
