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

Fix the fontdict parameter in set_xticklabels/set_yticklabels #5015

Merged
merged 1 commit into from Sep 1, 2015

Conversation

spacelis
Copy link
Contributor

The fontdict parameter is not properly used in set_xticklabels/set_yticklabes. The following code works with this patch now.

import matplotlib.pyplot as plt
import matplotlib.font_manager as fm

prop = fm.FontProperties(fname='/path/to/fonts.ttf')
plt.plot([1,2,3], [1,2,3])
plt.gca().set_xticklabels([u'一', u'二', u'三', u'四', u'五'], fontdict={'fontproperties': prop})

tacaswell added a commit that referenced this pull request Sep 1, 2015
FIX: fontdict parameter to set_xticklabels/set_yticklabels
@tacaswell tacaswell merged commit 485c04b into matplotlib:master Sep 1, 2015
@tacaswell
Copy link
Member

Thanks, looks like that has been broken for a while.

Looks like there are some deeper issues with that set of functions as well...

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.

None yet

2 participants