QCustomPlot Discussion and Comments

QCP and strip chartsReturn to overview

Is there an easy way to create a strip chart in QCP (like an oscilloscope)? My guess is that you would just keep moving the range of the axis and add points to the data. I wonder if that could be made into a special axis class (if appropriate).

That is the exact need I had too. I actually have a thumbnail and main view of same strip chart. I am using the ->rescaleAxes(); on the thumbnail to keep the whole plot in view. With the main window I do the same but allow the user to scroll back through it without the rescaling. to use the scrolling use ->setInteractions(QCP::iRangeDrag);. You can also OR in the QCP::iRangeZoom to allow them to zomm in and out.

The biggest thing I stumbled on is to be sure and clear everything before plotting new data, otherwise it will keep expanding all the graphs and chew up your CPU resources.