windelbouwman / lognplot

Plotting and logging of real-time data for desktop.
GNU General Public License v3.0
78 stars 11 forks source link

Plotting NaN Values has strange behaviour #31

Open phectori opened 4 years ago

phectori commented 4 years ago

There you go!

Screenshot_20200309_164416

windelbouwman commented 4 years ago

What type of behavior do you expect?

Options:

phectori commented 4 years ago

I would say: Do not draw a line between the points surrounding the NaN value, or maybe ignore it completely.

It depends whether you want to indicate a NaN value has been sent. You could also give the line between the surrounding points a "warning" colour.

windelbouwman commented 4 years ago

The simplest implementation would be to ignore the value.

This might well be different from the right thing to do. In any case, I propose to drop the value with an warning in the logging. The person sending the data should check on NaN values I assume?