@@ -522,6 +522,11 @@ def suptitle(self, t, **kwargs):
522
522
*verticalalignment* : 'top'
523
523
The vertical alignment of the text
524
524
525
+ If the `fontproperties` keyword argument is given then the
526
+ rcParams defaults for `fontsize` (`figure.titlesize`) and
527
+ `fontweight` (`figure.titleweight`) will be ignored in favour
528
+ of the `FontProperties` defaults.
529
+
525
530
A :class:`matplotlib.text.Text` instance is returned.
526
531
527
532
Example::
@@ -536,10 +541,11 @@ def suptitle(self, t, **kwargs):
10000
536
541
if ('verticalalignment' not in kwargs ) and ('va' not in kwargs ):
537
542
kwargs ['verticalalignment' ] = 'top'
538
543
539
- if 'fontsize' not in kwargs and 'size' not in kwargs :
540
- kwargs ['size' ] = rcParams ['figure.titlesize' ]
541
- if 'fontweight' not in kwargs and 'weight' not in kwargs :
542
- kwargs ['weight' ] = rcParams ['figure.titleweight' ]
544
+ if 'fontproperties' not in kwargs :
545
+ if 'fontsize' not in kwargs and 'size' not in kwargs :
546
+ kwargs ['size' ] = rcParams ['figure.titlesize' ]
547
+ if 'fontweight' not in kwargs and 'weight' not in kwargs :
548
+ kwargs ['weight' ] = rcParams ['figure.titleweight' ]
543
549
544
550
sup = self .text (x , y , t , ** kwargs )
545
551
if self ._suptitle is not None :
0 commit comments