Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

Open
@boffi

Description

@boffi

Bug summary

The size of the text infig.suptitle is different if I specify the size of the text directly, or inside thefontdict={...}

Code for reproduction

importmatplotlib.pyplotaspltfig=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{...}) andax1.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


      [8]ページ先頭

      ©2009-2025 Movatter.jp