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

FontProperties are shared by all three titles of an Axes object #3327

Closed
fcolas opened this issue Jul 30, 2014 · 0 comments
Closed

FontProperties are shared by all three titles of an Axes object #3327

fcolas opened this issue Jul 30, 2014 · 0 comments
Milestone

Comments

@fcolas
Copy link

fcolas commented Jul 30, 2014

When defining center, left and right title, the font size and weight will be set for all of them.
For example:

import matplotlib.pyplot as plt
ax1 = plt.subplot(121)
ax1.set_title('center', loc='center', fontsize=20, fontweight=700)
ax1.set_title('left', loc='left', fontsize=10, fontweight=400)
ax2 = plt.subplot(122)
ax2.set_title('left', loc='left', fontsize=10, fontweight=400)
ax2.set_title('center', loc='center', fontsize=20, fontweight=700)
plt.show()

Left plot will have both titles small whereas right one will have both of them large and bold.

fcolas pushed a commit to fcolas/matplotlib that referenced this issue Jul 30, 2014
fcolas pushed a commit to fcolas/matplotlib that referenced this issue Jul 30, 2014
@tacaswell tacaswell modified the milestones: v1.5.x, v1.4.x Jul 30, 2014
fcolas pushed a commit to fcolas/matplotlib that referenced this issue Jul 30, 2014
fcolas pushed a commit to fcolas/matplotlib that referenced this issue Jul 31, 2014
fcolas pushed a commit to fcolas/matplotlib that referenced this issue Jul 31, 2014
tacaswell added a commit that referenced this issue Aug 26, 2014
BUG : use copy of font-properties for each axes title

closes #3327
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