Skip to content
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

legend title #6769

Closed
mullenkamp opened this issue Aug 14, 2017 · 8 comments · Fixed by #8887
Closed

legend title #6769

mullenkamp opened this issue Aug 14, 2017 · 8 comments · Fixed by #8887

Comments

@mullenkamp
Copy link

mullenkamp commented Aug 14, 2017

I was wondering if an option can be added to bokeh to add titles to legends?
This is similar to a question that was asked here:
Any way to create a legend title in Bokeh?

Something consistent with the bokeh syntax like:

p.legend.title = 'Legend Title'
@bryevdv
Copy link
Member

bryevdv commented Aug 14, 2017

This capability does not yet exist, but has recently been brought up by a few different folks (ping @jlstevens @philippjfr) So I've slated it for 0.12.8 However, it should not be a lot of work, so we'd be happy to help anyone that can work on it sooner than we are able to get to it.

@philippjfr
Copy link
Contributor

Yes, I'd love to get this functionality into bokeh but I probably won't find the time in the near future.

@mattpap mattpap self-assigned this Aug 22, 2017
@mattpap
Copy link
Contributor

mattpap commented Aug 22, 2017

I'm marking this as part of layout work, because it would a nice opportunity to bring layout to annotations.

@bryevdv
Copy link
Member

bryevdv commented Aug 22, 2017

I'm marking this as part of layout work, because it would a nice opportunity to bring layout to annotations.

That seems like overkill? Drawing a title above the existing legend seems like a trivial thing to do, what need is there to complicate it by bringing in layout?

@mattpap
Copy link
Contributor

mattpap commented Aug 22, 2017

Sure, in isolation this is definitively an overkill, and if someone wants to just add this feature then go ahead. However, I would like to have a broader look at how we layout annotations, because having a title on a legend shouldn't be a special case, but should nicely flow from canvas layout. I have some thoughts on this subject based on failings with my recent tutorial.

@bryevdv bryevdv modified the milestones: 0.12.x, 0.12.11 Oct 16, 2017
@bryevdv bryevdv modified the milestones: 0.12.11, 0.12.x Nov 6, 2017
@mattpap mattpap added this to Triage in Focus: Layout Nov 7, 2017
@bryevdv bryevdv modified the milestones: 0.12.x, 0.12.16 Mar 17, 2018
@bryevdv bryevdv modified the milestones: 0.12.16, 0.12.x Apr 24, 2018
@bryevdv bryevdv modified the milestones: 0.13.x, short-term Sep 11, 2018
@birdsarah
Copy link
Member

@mattpap, did this end up being included in layout work?

@mattpap
Copy link
Contributor

mattpap commented Feb 5, 2019

Not yet, but it's work in progress.

@birdsarah
Copy link
Member

Awesome news. Congrats on the layout PR, I know what a lift layout is.

To clarify: does the layout PR include a framework for annotation layout and the work of adding legend titles is the piece that isn't available yet; or is annotation layout still to be included?

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

Successfully merging a pull request may close this issue.

5 participants