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
axisartist incompatible with autofmt_xdate #602
Comments
autofmt_xdate() is a beast of its own and has plagued us for quite awhile. The issue that is raised in the axes_grid docs is only tangentally related to the issue you are facing here, I think. See pull #1. As far as I know, no change was ever made, but who knows with all of the massive merges caused by the py3k stuff. |
Basically, what "autofmt_xdate" does is to adjust the horizontal-alignment and rotation of texts. def axisartist_autofmt_xdate(ax):
ax.axis["bottom"].major_ticklabels.set_rotation(30)
ax.axis["bottom"].major_ticklabels.set_ha("right")
axisartist_autofmt_xdate(ax) With v1.1 of matplotlib, you may optionally do after above tight_layout() |
Thanks. That seems to work. I am using it in combination with |
@leejjoon, does this issue need to stay open? |
I believe we can close it. |
Compare the results of the following two code samples:
(The only difference between the samples is that the second one is using
mpl_toolkits.axisartist
)The first example formats the tick labels so that they appear diagonally and thus do not overlap each other. The second does not.
I noticed on the AxisGrid page (http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html) the following message:
Although this describes a problem simoilar to the one I'm seeing, it is not very helpful as it does not suggest any alternatives. (For the record, I am using
axisartist
so that I can configure the shape/colour of the axis border)The text was updated successfully, but these errors were encountered: