PanZoom does not work with pandas datetime data - x-axis overzooms
See original GitHub issueTrying to panzoom a linechart generated with the attached csv file.
When using the zoom function, the x-axis (DateScale) goes completely off, making this feature unusable. For one click in the wheel, the scale changes by more than 5 hours. I was expecting changes in the order of minutes.
Attached is a reference notebook implementation showing the problem.
bqplot_panzoom_issue.zip
You will need to change your file path to import the data, currently set to:
file_path
= '~/work/FCMC_10Hz_simple.csv'
This is the data file: FCMC_10Hz_simple.zip
The last cell is my current, inelegant, workaround, where I need to plot my data against numeric index instead of its true time stamp.
Could you look into this? I could not find what the problem is. I tried to set the min= during my DateScale declaration, but that did not help either.
Help is much appreciated.
Tks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (11 by maintainers)
Top GitHub Comments
I also tested the fix with the initial example given above (it works correctly now)
Follow-up. OK, so I went into Windows>Settings>Date&Time Under the “Time Zone” dropdown, I had “(UTC -05:00) Eastern Time (US & Canada)” Bingo, when I change it to " (UTC) Coordinated Universal Time", zooming works as posted above. @DougRzz , please try to reproduce this. Let me know…