8000 Check for fontproperties in figure.suptitle. by dmkent · Pull Request #7019 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Check for fontproperties in figure.suptitle. #7019

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

Merged
merged 1 commit into from
Sep 21, 2016

Conversation

dmkent
Copy link
Contributor
@dmkent dmkent commented Sep 3, 2016

Fixes #6996

Was previously applying defaults from rcParams when fontproperties was provided. This meant fontproperties got ignored.

Travis CI failed a seemingly unrelated test when I ran it on this change (https://travis-ci.org/dmkent/matplotlib/builds/156481606), will see what it thinks on the PR....

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Sep 3, 2016
def test_suptitle():
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
fig.suptitle('hello', color='r')
fig.suptitle('title', color='g', rotation='30')

from matplotlib.font_manager import FontProperties
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this it's own test with the @cleanup decorator? Just checking that font size and weight are correct is probably enough for this test.

@tacaswell
Copy link
Member

👍

Was previously applying defaults from rcParams when fontproperties
was provided. This meant fontproperties got ignored.
@dmkent dmkent force-pushed the fix-suptitle-fontproperties branch from 1a6bdfa to 29f4679 Compare September 3, 2016 23:27
@NelleV
Copy link
Member
NelleV commented Sep 21, 2016

Thanks for the patch!

@NelleV NelleV merged commit d2d9d7d into matplotlib:master Sep 21, 2016
@QuLogic
Copy link
Member
QuLogic commented Sep 22, 2016

Needs backport.

@dmkent
Copy link
Contributor Author
dmkent commented Sep 24, 2016

Happy to do that if desired. Which branch is it to target?

tacaswell pushed a commit that referenced this pull request Sep 24, 2016
Check for fontproperties in figure.suptitle.
@tacaswell
Copy link
Member

backported to v2.x as cf8e669

@dmkent Thanks for the offer, but I just took care of it.

@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0 (style change major release) Dec 7, 2016
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.

5 participants
0