[SciPy-user] plot.plt speed
doug at idsia.ch
Fri Jun 7 05:28:02 CDT 2002
I found a solution to this problem, albeit not a perfect one.
Simply build a long plot string and then use eval()
for i in range(shape(x)) :
pltstr = "%sy,x[%i,:]+%i,'b-'" % (pltstr,i,i)
pltstr="%s," % (pltstr)
pltstr="%s)" % pltstr
Maybe this isn't helpful to anyone else, but it was helpful for me.
Douglas Eck wrote:
> I need to plot 10 time series on the same plot window. But it's quite slow:
> takes 18 seconds.
> takes less than one second
> There are some tricks for speeding up the first case in gnuplot by
> the array to be 1,2000 and adding a second array for the x values.
> [[1:200][1:200]....[1:200]]. But this has other problems.
> Any ideas? My timeseries are more on the order of (25,2500).... not
Dr. Douglas Eck, http://www.idsia.ch/~doug
Istituto Dalle Molle di Studi sull'Intelligenza Artificiale (IDSIA)
Neural Networks, Rhythm Perception and Production, Dynamical Systems
More information about the SciPy-user