John Hunter-4 wrote:
> 
> Ahh, mixing matplotlib.use from an interactive ipython session -- that is
> an
> important detail :-)  What is your backend (import matplotlib; print
> matplotlib.rcParams['backend'])   It is quite likely that you are getting
> cross GUI / cross threading problems from trying to do this inside
> ipython,
> which may be using one GUI backend based on rc at pylab startup, and mpl
> is
> trying to use another one with the use directive.  Basically, "use" is not
> supported for switching GUIs, it was designed to be the first line
> executed
> in a session but when you do this interactively in ipython pylab mode, you
> are asking for a world of pain.
> 
> Try running your example from a standard unix shell rather than from
> ipython
> 
> JDH
> 

Sorry, I should have specified: I wrote this script to use separate from my
interactive sessions as a test.  I use Qt4Agg now, set in my matplotlibrc,
and I do not use matplotlib.use() at all (since it doesn't work anyway). 
The faster performance I reported was achieved by setting the backend in my
matplotlibrc, not on the command line.  So I don't think I'm running into
the issues you're talking about.

I don't really know how to run a script in which I expect plots to show up
from the command line.  If I do something simple like 'python test.py' it
pops up windows but never shows the plots I expect to see.

Adam
-- 
View this message in context: 
http://www.nabble.com/Interactive-backends-very-%28suprisingly-%29-slow-for-multiple-subplots-tp23261074p23264479.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to