PDA

View Full Version : [Performance] Wide scale when drawing curves in plot



seauniv
11th November 2014, 08:52
I tried to draw some curves using QwtPlot, the scale of plot may range from 100 to 100000 pixels. It is easy to obtain this goal, but this solution consumes too much memory cause the size of plot too big.

I think we can just draw part of curves, which display on screen. Now another problem arises, I don't know how to set scrollbar to control the display of curves.

Any suggestions? Thanks in advance!

Uwe
11th November 2014, 10:14
Have a look at the realtime example - here an optional scrollbars appear, when you zoom in. The implementation used in the example doesn't create any huge widgets and therefore doesn't run into the issues you mentioned above.

IMHO having a widget of a width of 100000 pixels ( all kind of widgets not only QwtPlot ) is something you should avoid by any means.

Uwe