Re: [FORGED] Plotting negative infinity and nan
Brought to you by:
rathmann
|
From: Alan G. <a....@au...> - 2019-04-27 22:46:06
|
Hi Fabian, I am not aware of a Qwt-based way of doing what you are after, but personally I keep track of the data that is valid (i.e. not an Inf or a NaN) when I am about to call QwtPlotCurve::setRawSamples() (see http://tiny.cc/gefu5y). Then, I kind of override QwtPlotCurve::drawLines() (and QwtPlotCurve::drawSymbols() for my needs) and only plot the aforementioned valid data (see http://tiny.cc/4efu5y and http://tiny.cc/vffu5y). I don't know if it's the best way to do it, but it certainly works the way I want. HTH, Alan. On 27/04/19, 22:06, "Fabian Schwartau" <fa...@op...> wrote: Hi everyone, I am using qwt for plotting some stuff and I am experiencing some issues when trying to plot data with negative infinity values (-inf) or NaN values in it. In both cases qwt plots a line to infinity. I would personally prefer if he would not plot these lines at all (like in Matlab) or at least plot the -inf to negativ infinity, not positive. Is this intended behaviour? Can someone maybe point me to the code where I can change that at least for my application? Best regards, Fabian _______________________________________________ qwt-interest mailing list qwt...@li... https://lists.sourceforge.net/lists/listinfo/qwt-interest |