Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Vincent off-by-one datetime axis bug after Monthly resampling #143

Open
ianozsvald opened this issue Aug 19, 2015 · 0 comments
Open

Vincent off-by-one datetime axis bug after Monthly resampling #143

ianozsvald opened this issue Aug 19, 2015 · 0 comments

Comments

@ianozsvald
Copy link

Hi there. I read that Vincent is now in support-mode only so I'm filing this more for information than in hope of a fix. If there is a fix or an alternative way of expressing the data, I'd love to hear about it.

Using a pandas DataFrame with a DateTime index, if I resample with a Monthly timeframe and use a Line to plot the count of events the x-axis is off-by-one-month (it runs Feb..December with an empty final entry). If I plot the raw data it is shown Jan..Dec and if I resample Weekly it is also shown with a correct x-axis.

Here's a screenshot of my Notebook showing the bad x-axis after resampling. The first chart shows the raw data (with correct x-axis labels, accepting that January isn't shown), the second chart is the resampled data where the left-most x-axis label is "February" rather than "January":

vincent_resamplem_bug

If I resample by Weekly to make the counts then the x-axis looks correct:

vincent_resamplew_tempfix

If anyone has a fix to make the x-axis look right for a monthly resample, I'd love to hear it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant