You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm plotting sensor data and would like to add breaks in the plot using custom timeseries. Right now, I have the recorded value as well as the sensor state (1 meaning on/valid value, 0 meaning off/noise value) for every time stamp. If the state (v2 below) is 1, I want to return the recorded value (v1); if the state is 0 I want to cause a break in the graph's data.
My function is: if v2 == 1 then return v1 end return \*SOMETHING*\
I have tried returning {}None and nil but nothing has worked for what I wanted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm plotting sensor data and would like to add breaks in the plot using custom timeseries. Right now, I have the recorded value as well as the sensor state (1 meaning on/valid value, 0 meaning off/noise value) for every time stamp. If the state (v2 below) is 1, I want to return the recorded value (v1); if the state is 0 I want to cause a break in the graph's data.
My function is:
if v2 == 1 then return v1 end return \*SOMETHING*\
I have tried returning
{}
None
andnil
but nothing has worked for what I wanted.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions