I'd like to add persistence to my QwtPlot. For instance, when I plot a QwtPlotCurve, I'd like the original curve to fade at some rate when I plot new data. I can see a couple ways to do this:
- I could keep up with N plot items, where item 0 has the highest intensity, and N-1 has the lowest, but then I have to keep all of the plotted data in memory, and this could get prohibitive if I want to fade very slowly (which would require a large number of plot items).
- I could reimplement the appropriate methods in QwtPlot to draw everything to an image, then manipulate the image (gradually fade to background color each time replot is called with new data), and apply this cached image image to the canvas. Not quite how much work would be involved with this option.
Has anyone implemented this type of plot behavior before? Any tips would be appreciated.
Thanks!
Bookmarks