Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Problem
Problem summary
I cannot change the default location of afigure.suptitle()
through thercParams
as I can with the title location of the axis title.
Origin/background
I am tweaking the default settings of Matplotlib to create plots that in appearance match the corporate styling. Most changes have been made by re-setting the default values of certainrcParams
.
One of the requirements is the left-alignment of titles of graphs. For the axis title I can setrcParams['axes.titlelocation']
to'left'
, as itdefaults tocenter
. I would like to do something similar to the figure's suptitle.
Currently, setting the figure's suptitle only takes defaultsrcParams['figure.titlesize']
andrcParams['figure.titleweight']
. The other parameters for location and alignment of the suptitle are defaulted in the method's argument definition. My desire is to add these torcParams
as well, and refer hereto as default.
Proposed solution
E.g. expand thercParams
with:
{ 'figure.titleloc_x': 0.5, 'figure.titleloc_y': 0.98, 'figure.titleha': 'center', 'figure.titleva': 'center'}
And then use these defaults infigure.suptitle()
, very similar to howrcParams['figure.titlesize']
andrcParams['figure.titleweight']
are already used as default values.