On Feb 11, 2007, at 1:15 PM, Peter K. Stys wrote:
I too created a plotting class that draws vectors and caches as bitmap for speed (includes cursor readout of coord values, delta display ie. dx, dy between 2 points, lin/semilog, legends, etc...). Speed was an issue with a dozen waveforms each having 1000 or more points. Vectors were too slow for the standard window refreshes, etc... So I create the vector Group2D once from the raw data & render it into a bitmap; the latter is used in the paint event of the canvas for speed, unless the data change, then the vectors are rebuilt. I can send the opensource class to anyone who's interested. P.
One of the optimizations to always look at is if the number of points to plot is > the number of pixels in the drawing area then you can only represent some of the items So even if you try to plot 5000 points on a 500 pixel area you only need to plot 500 of the data points that actually fall on distinct integer coordinates
It makes things go faster _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
