Skip to content
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

Plotting of millisecond frequency broken #1599

Closed
changhiskhan opened this issue Jul 10, 2012 · 1 comment
Closed

Plotting of millisecond frequency broken #1599

changhiskhan opened this issue Jul 10, 2012 · 1 comment
Assignees
Labels
Bug Datetime Datetime data dtype Visualization plotting
Milestone

Comments

@changhiskhan
Copy link
Contributor

from stackoverflow:

I am trying to create a plot waith an x range of e.g. 500 milliseconds.

rng = date_range(s,periods=500,freq="U")
df = DataFrame(randn(500),index=rng,columns=["A"])

to plot column A:

df["A"].plot()
The whole plot will be squeezed into a single spike because the x range is defined from Jan-2011 until Jul-2014.

Is there a way to change this?

@azjps
Copy link

azjps commented Feb 18, 2015

With this matplotlib commit (I think for matplotlib 1.3.0+), there's better microsecond resolution handling with the default matplotlib.dates.AutoDateLocator than PandasAutoDateLocator - the matplotlib locator can plot ticks in units of microseconds while the pandas locator doesn't plot ticks with resolution better than milliseconds. It would be nice to either update PandasAutoDateLocator to account for this or not set this locator as the default when pandas is imported. (Should I raise this as a separate issue?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Visualization plotting
Projects
None yet
Development

No branches or pull requests

3 participants