-
Very very long Plot
This is a newbie question. I'm looking for guidance on how best to plot a long chart.
I have to plot a very long chart - potentially several million points. Also, the user can zoom in so the virtual chart can be 100 million pixels long.
The data is accessed via a QAbstractTableModel.
Is this a suitable task for the Qwt widgets?
Thanks
Bob
-
Re: Very very long Plot
The number of points have an impact on the painting performance. After writing a QwtData object, that forwards the points from your model, you will see if it is fast for your needs. If not:
a) Don't use a model. Passing trillions of points through this fat API hurts.
b) Implement different level of details depending on the zoom level to reduce the number of points.
Uwe
-
Re: Very very long Plot
Thanks, Uwe. I'll rework the strategy to bypass the model stuff.
Bob