Skip to content

[Bug]: set_size only works for loc='center' #27772

Open
@szwang1990

Description

@szwang1990

Bug summary

ax.title.set_size() works for loc='center' but not for loc='left' or 'right'

Code for reproduction

fig, ax = plt.subplots()
ax.title(label='abc', loc='left')
ax.title.set_size(50)

Actual outcome

loc_center
loc_left
loc_right

Expected outcome

set_size() works for all title locations ('left', 'center', 'right')

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

3.5.2

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

Python 3.7.12

Jupyter version

jupyter lab 0.35.4

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions