Skip to content

VIS: register datetime64 in matplotlib units registry (GH8614) #8693

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

Conversation

jorisvandenbossche
Copy link
Member

Closes #8614

@jorisvandenbossche jorisvandenbossche added this to the 0.15.1 milestone Oct 31, 2014
@jorisvandenbossche
Copy link
Member Author

@shoyer @jreback @agijsberts

to plot such values as datetimes. This is activated once pandas is imported. In
previous versions, plotting an array of ``datetime64`` values will have resulted
in plotted integer values. To keep the previous behaviour, you can do
``matplotlib.units.registry[np.datetime64] = None`` (:issue:`8614`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

del matplotlib.units.registry[np.datetime64] would imho be slightly neater.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep indeed

@jreback
Copy link
Contributor

jreback commented Nov 5, 2014

@jorisvandenbossche ?

@jorisvandenbossche jorisvandenbossche force-pushed the plot-datetime64 branch 2 times, most recently from 0146152 to 932afd8 Compare November 5, 2014 10:01
@jorisvandenbossche
Copy link
Member Author

Rebased, and will merge when travis is green

jorisvandenbossche added a commit that referenced this pull request Nov 5, 2014
VIS: register datetime64 in matplotlib units registry (GH8614)
@jorisvandenbossche jorisvandenbossche merged commit 9516c06 into pandas-dev:master Nov 5, 2014
@@ -283,8 +293,15 @@ Bug Fixes



<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you meant to merge the conflict markers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, no not really ..
should have gone something wrong with rebasing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for noticing!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

Plotting of DatetimeIndex directly with matplotlib no longer gives datetime formatted axis (0.15)
4 participants