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
Closed

legend title #6769

mullenkamp opened this issue Aug 14, 2017 · 8 comments

Comments

@mullenkamp
Copy link

@mullenkamp 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 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.

Loading

@philippjfr
Copy link
Contributor

@philippjfr philippjfr commented Aug 15, 2017

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

Loading

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

@mattpap 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.

Loading

@bryevdv
Copy link
Member

@bryevdv 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?

Loading

@mattpap
Copy link
Contributor

@mattpap 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.

Loading

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

@birdsarah birdsarah commented Feb 5, 2019

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

Loading

@mattpap
Copy link
Contributor

@mattpap mattpap commented Feb 5, 2019

Not yet, but it's work in progress.

Loading

@birdsarah
Copy link
Member

@birdsarah birdsarah commented Feb 6, 2019

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?

Loading

@bryevdv bryevdv closed this in #8887 May 6, 2019
@bryevdv bryevdv removed this from the short-term milestone May 16, 2019
@bryevdv bryevdv added this to the 1.1.1 milestone May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants