twosigma / twosigma/beakerx

Vertical lines on TimePlot broken in python

Open
#8,015 9 comments 0 reactions 1 assignee Claimed by @LeeTZ View on GitHub
Dominant language
Jupyter Notebook
Stars
2.9k
Forks
383
PR merge metrics
No merged PRs in 30d

Description

The following code and variations of it produce a blank chart

```
y = pd.Series([7.5, 7.9, 7, 8.7, 8, 8.5])
dates = pd.Series(['2015-02-01',
'2015-02-02',
'2015-02-03',
'2015-02-04',
'2015-02-05',
'2015-02-06']
, dtype='datetime64[ns]')
plot = TimePlot()
plot.add(Line(x=dates, y=y))
plot.add(ConstantLine(x=pd.to_datetime('2015-02-04 15:00:00'))
```

If I switch to using nanoseconds as keys instead of Timestamp then it works as expected.
I'm attaching a couple of screenshots of the chart and the log with the error. I'm not even sure how to get to the backend log of beakerX in order to see what's the root exception, any direction would be very helpful.

Screen Shot 2019-03-22 at 6 55 47 PM
Screen Shot 2019-03-22 at 6 53 21 PM

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.