Skip to content

Legend Title #1708

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
terryphi opened this issue Aug 6, 2019 · 2 comments
Closed

Legend Title #1708

terryphi opened this issue Aug 6, 2019 · 2 comments

Comments

@terryphi
Copy link

terryphi commented Aug 6, 2019

Hello,

there doesn't appear to be any method for adding a legend title.

Can you please add this?

@jonmmease
Copy link
Contributor

Hi @terryphi,

I agree that this would be nice. Here's a plotly.js issue discussing the request: plotly/plotly.js#689. As mentioned there, it's possible to add text annotations in paper coordinates to act as a legend title (https://plot.ly/python/text-and-annotations/#adding-annotations-with-xref-and-yref-as-paper).

But because plotly.js has a bit of default placement logic for legends, this won't be something that we could reliably automate from Python. So I think this would need to handled in plotly.js. @nicolaskruchten do you agree?

@nicolaskruchten
Copy link
Contributor

This was implemented in 4.5 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants