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

Xaxis autoformat issue - self._use_dynamic_x should be self._use_dynamic_x() #1666

Closed
joelhoro opened this issue Jul 24, 2012 · 0 comments
Closed
Milestone

Comments

@joelhoro
Copy link

The following

from pandas import *
import datetime
DataFrame([1,1], index =  [ datetime.datetime(2012,1,1), datetime.datetime(2012,9,1) ] ).plot()

gives a plot where the xaxis is not readable. I think the reason is that in tools\plotting.py the condition (which decides to autofmt) is false.

condition = (not self._use_dynamic_x
             and df.index.is_all_dates
             and not self.subplots
             or (self.subplots and self.sharex))

Should the first line not be self._use_dynamic_x() instead?

[See http://stackoverflow.com/questions/11619144/pandas-xaxis-auto-format-issue for discussions]

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

No branches or pull requests

2 participants