Skip to content

Commit 7a57e8d

Browse files
committed
Merge pull request #5749 from tacaswell/fix_suptitle_sizeorder
FIX: degenerecy in suptitle
2 parents 4356809 + 1e0f769 commit 7a57e8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ def suptitle(self, t, **kwargs):
536536
if ('verticalalignment' not in kwargs) and ('va' not in kwargs):
537537
kwargs['verticalalignment'] = 'top'
538538

539-
if 'fontsize' not in kwargs:
540-
kwargs['fontsize'] = rcParams['figure.titlesize']
541-
if 'fontweight' not in kwargs:
542-
kwargs['fontweight'] = rcParams['figure.titleweight']
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']
543543

544544
sup = self.text(x, y, t, **kwargs)
545545
if self._suptitle is not None:

0 commit comments

Comments
 (0)