Skip to content

Expose subtitle in Plotly Express #4818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ndrezn opened this issue Oct 22, 2024 · 0 comments · Fixed by #4830
Closed

Expose subtitle in Plotly Express #4818

ndrezn opened this issue Oct 22, 2024 · 0 comments · Fixed by #4830
Labels
P3 backlog

Comments

@ndrezn
Copy link
Member

ndrezn commented Oct 22, 2024

Adding a subtitle to Plotly Charts is great! But a bit tedious:

fig.update_layout(title={'subtitle':{'text':"This is a subtitle"}})

Or, with magic underscores:

fig.update_layout(title_subtitle_text="This is a subtitle")

As a common addition to charts, we should expose subtitle through the Plotly Express API, e.g.:

px.line(
   ...
   subtitle="This is a subtitle"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 backlog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant