Streaming data to DataSourceColumn with Null values

I’m streaming data in real-time to draw a scatter plot. The X axis is time and there could be multiple data series. Sometimes, one data series my have point for specific timestamp, while the other one wouldn’t. I noticed that “stream” method of DataSourceColumn must have data for all columns. Thus I’m passing “None” for missing point. However they are rendered as zeros.

Does Bokeh support None (null or N/A) values which will not be treated as zeros and rendered?

Thanks,

Hi,

You’ll have to send NaN values, which will work best with numpy arrays for columns.

Alternatively, if the data are not actually aligned, separate CDS may be more advised.

Thanks

···

On Oct 3, 2017, at 16:26, [email protected] wrote:

I’m streaming data in real-time to draw a scatter plot. The X axis is time and there could be multiple data series. Sometimes, one data series my have point for specific timestamp, while the other one wouldn’t. I noticed that “stream” method of DataSourceColumn must have data for all columns. Thus I’m passing “None” for missing point. However they are rendered as zeros.

Does Bokeh support None (null or N/A) values which will not be treated as zeros and rendered?

Thanks,

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/628e9956-66ef-4c88-933d-e20c50c9a44f%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.