Hi,
Christian wrote:
I've found a discussion about drawing speed and adding some new kind of
canvas to improve speed but that was three years ago. So maybe there's
been already some developement which I'm not aware of. I'd like to have
a faster version of wxPlotCanvas. Displaying multiple curves with more
than thousand data points each and using the PpolyMarker style is very
slow. Are there other possiblities?
The question is quite vague and covers several subjects: wxDC, plotting
modules, real speed, objects to be plotted, ...
1) Speed
What is fast and what is slow?
2) Plotting modules
- http://scipy.com
- There is a small and new package called wxPyPlot.py by Gordon Williams.
Sorry, I do not remember where. Make a search in this list.
3) wxDC itself
Improvments are wxBufferedPaintDC and DrawXXXList. Look at the demo.
See 4)
4) Home made coding.
That's the choice I made in psi. psi is a simple python shell, that includes
plot modules. It offers the possibiliy to plot somedata from within the shell.
http://www.chez.com/spinecho/pypsi/pagpypsi.htm
It is certainly not the right tool for scientific plotting, but at least it shows and
give some indication about the "wxDC drawing speed"
Using psi on my 'slow' PIII 500 MHz 256Mb, I can plot two lines of 10000
points in less than 0.5s.
5) Do not forget Python 2.3. Faster than 2.2.
Jean-Michel Fauth, Switzerland