PDA

View Full Version : Skip NaN values in qwtplot



ivareske
12th October 2011, 14:01
Hi, I want to make QwtPlotCurve draw a continous line, even when there are NaN values. I just want the NaN values to be skipped. how could I do this? I have looked at this thread
http://www.qtcentre.org/threads/34261-How-to-make-curves-with-empty-intervals-in-them
where there is an example on how to draw gaps where there are NaN values. It seems to me like I would have to remove the points with NaN`s from the QwtScaleMap`s in QwtPlotcurve:.draw, but there is no way to edit the QwtScaleMap.

regards, Ivar