X Tutup
Skip to content

Check for fontproperties in figure.suptitle.#7019

Merged
NelleV merged 1 commit intomatplotlib:masterfrom
dmkent:fix-suptitle-fontproperties
Sep 21, 2016
Merged

Check for fontproperties in figure.suptitle.#7019
NelleV merged 1 commit intomatplotlib:masterfrom
dmkent:fix-suptitle-fontproperties

Conversation

@dmkent
Copy link
Copy Markdown
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
fig.suptitle('hello', color='r')
fig.suptitle('title', color='g', rotation='30')

from matplotlib.font_manager import FontProperties
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

NelleV commented Sep 21, 2016

Thanks for the patch!

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

QuLogic commented Sep 22, 2016

Needs backport.

@dmkent
Copy link
Copy Markdown
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
Copy Markdown
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

X Tutup