[wxPython-users] Re: Draw method in PlotCanvas class for a number
of points (>80,000) takes too much time
Christopher Barker
Chris.Barker at noaa.gov
Thu Dec 21 13:14:26 PST 2006
maser rati wrote:
> Numpy rocks. However I'm looking at matplotlib to
> display the data, it has the option of displaying
> subplots on a frame, and it's syntax is sort of
> similar to Matlab... But wx.plot.lib is much simpler.
yes, it is -- but MPL is far more flexible.
> During first run it looks like Matplotlib also takes
> lot of time (~5-10secs) to plot a 80,000 point data
> set.
It may well, development priority is focused on making MPL work with
three different num* packages, and LOTS of back-ends -- performance does
suffer some from that.
You might want to try a different back-end: wxAgg produces the nicest
output, but the native wx back-end may be faster.
Also, you'd be hard-pressed to see 80,000 distinct points on a moderate
sized plot anyway, Maybe you'd be better off thinning your data before
plotting somehow.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list