John Hunter-4 wrote:
>
> That does sound exceedingly slow -- it looks like you are having some
> problems with the GUI or environment and not just the mpl component. How
> are you running and profiling your script? Can you post some
> free-standing
> example code which exposes the problem? Can you provide some of the
> environment data detailed at
> http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems
>
I haven't been doing any profiling; I've never been particularly comfortable
with timeit.
As for normal problem reporting details...
Darwin eta.colorado.edu 9.6.3 Darwin Kernel Version 9.6.3: Tue Jan 20
18:26:40 PST 2009; root:xnu-1228.10.33~1/RELEASE_I386 i386 i386
matplotlib version 0.98.3
My example standalone script (note that it takes the backend as a command
line argument and assumes you have not selected a backend / imported pylab):
import matplotlib
import sys
matplotlib.use(sys.argv[1])
from pylab import *
i=1; n=1;
print "Working on figure 0"
figure(0); clf()
for j in xrange(36):
if (i % 10)==0:
print "Working on figure %i" % n
figure(n); clf()
i=1
n+=1
subplot(3,3,i)
plot([1,2,3],[3,2,1])
plot([1,2,1],[1,2,3])
plot([1,2,3],[1,2,3])
i+=1
Results:
In [1]: %run -t code/test.py 'Qt4Agg'
backend Qt4Agg version 0.9.1
IPython CPU timings (estimated):
User : 21.553853 s.
System: 0.0 s.
In [1]: %run -t code/test.py 'pdf'
backend pdf version unknown
IPython CPU timings (estimated):
User : 1.056959 s.
System: 0.0 s.
In [1]: %run -t code/test.py 'svg'
backend svg version 0.98.5.2
IPython CPU timings (estimated):
User : 1.056702 s.
System: 0.0 s.
Curiously, if I add ioff() at the beginning of the script using the Qt4Agg
backend, I get the much nicer result:
User : 1.328496 s.
and show works quite rapidly. This suggests to me that the placement of
ioff() is important, so I'm going to try playing with that a little...
Adam
--
View this message in context:
http://www.nabble.com/Interactive-backends-very-%28suprisingly-%29-slow-for-multiple-subplots-tp23261074p23263295.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