Closed kv-gits closed 2 years ago
I suspect this check has some non-trivial overhead, and we would want users to be able to opt in to it only if they need it. At some point in the near future, I want to add ImPlotLineFlags
, etc. and so we could enable this with e.g. ImPlotLineFlags_SkipNan
. It will be a while before I get to this, though.
This is now possible with ImPlotLineFlags_SkipNaN
. In the example below, there is a y=NaN at x=0.5. The checkbox enables ImPlotLineFlags_SkipNaN
Implemented this by adding new Item "LineTo" with simple check for nan, but may be flag for common PlotLine would be more useful?
Also used "cmath" header file. Not sure is it propper for implot architecture.