Skip to content

This is an incomplete fix, but a reasonable one for now. #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 24, 2014

Conversation

theengineear
Copy link
Contributor

Basically, mpl has its own datetime system, where it uses floating
point versions of the Gregorian calendar days. My attempt to use
ISO formatted date-time strings failed. Therefore, I'm actually
manually formatting the time-string based on epoch time after
converting from mpl_date -> epoch time. Whew!

Basically, mpl has its own datetime system, where it uses floating
point versions of the Gregorian calendar days. My attempt to use
ISO formatted date-time strings failed. Therefore, I'm actually
manually formatting the time-string based on epoch time after
converting from mpl_date -> epoch time. Whew!
@theengineear
Copy link
Contributor Author

@etpinard, this is a fix that folks have been asking for. It will support datetime conversion along the x-axis. It needs to be fleshed out to handle more than just lines and could easily be extended to work in the y-axis direction as well.

Matplotlib's docs state:
'objects are converted to floating point numbers which represent time
in days since 0001-01-01 UTC, plus 1.'

We convert to epoch time with mpl, so it's safe to assume we've got
utc time!

http://matplotlib.org/api/dates_api.html#module-matplotlib.dates
@theengineear
Copy link
Contributor Author

@msund , this is that datetime fix, fyi. Just needs review and a pip version bump.

@theengineear
Copy link
Contributor Author

Okay, merged in new test fixes from master branch. This should? pass now.

@etpinard, it'd be rad to get a thumbs-up? ( i know, i owe you code review for the 1.3.0 stuff! 😸 )

@etpinard
Copy link
Contributor

Looking good, the tests passed, 👯

theengineear added a commit that referenced this pull request Sep 24, 2014
This is an incomplete fix, but a reasonable one for now.
@theengineear theengineear merged commit 0cdc373 into master Sep 24, 2014
@theengineear theengineear deleted the andrew-fix-mpl_dates branch September 24, 2014 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants