Skip to content

Center Title by default for px.imshow #4303

Open
@s2t2

Description

@s2t2

Issue:

Many chart-making functions such as px.line, px.scatter, px.bar center the title by default (desired), but the px.imshow function displays the title on the left margin instead (not desired).

import plotly.express as px

fig = px.imshow(mat, title="My Title")

Current Workaround:

fig.update_layout(title={'text': "My Title", 'x':0.485, 'xanchor': 'center'}) # manually center the title

Proposed Solution:

The px.imshow function should center the title by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions