Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: Inconsistency in fig.suptitle treatment of size=... #27630

Copy link
Copy link
Open
@boffi

Description

@boffi
Issue body actions

Bug summary

The size of the text in fig.suptitle is different if I specify the size of the text directly, or inside the fontdict={...}

Code for reproduction

import matplotlib.pyplot as plt

fig = plt.figure(figsize=(8, 3), layout='constrained')
f0, f1 = fig.subfigures(1, 2)
f0.suptitle('xxxXXX', fontdict=dict(family='Candara', size=30))
f1.suptitle('xxxXXX', size=30, fontdict=dict(family='Candara'))
plt.show()

Actual outcome

Figure_1

Expected outcome

I expected text of the same size.
In the example, I have used subfigures but using a figure (twice) I had the same results.
Further, using a single figure with 2 subplots, ax0.set_title(..., size=..., fontdict{...}) and ax1.set_title(..., fontdict={..., size=...}) gives titles with the same size.

Additional information

No response

Operating system

Suse Tumbleweed

Matplotlib Version

3.6.3

Matplotlib Backend

QtAgg

Python version

3.11.6

Jupyter version

Ipython 8.18.0

Installation

Linux package manager

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.