I have a system which is drawing points into a QwtPlot. What I want is getting the last plotted point at any time plotted in a different color, so I can always know which has been the last plotted point by the moment.
Is there any direct way of doing this, or how could I approach this?
You could use a QwtPlotMarker. The following code is extracted from the qwt example called “Bode”, and is located in a subclass from QwtPlot (i.e.
thisis a sub-class of QwtPlot):and later in the example the marker is located by:
For further informations have a look at the Qwt “Bode” example, which should be located in the qwt directory.