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_cols=int in bokeh #4529

Closed
rchurt opened this issue Jul 23, 2020 · 3 comments
Closed

legend_cols=int in bokeh #4529

rchurt opened this issue Jul 23, 2020 · 3 comments

Comments

@rchurt
Copy link

rchurt commented Jul 23, 2020

I see here that users can put "...the legend elements in a column layout with legend_cols=True or (legend_cols=int in matplotlib)". Could you extend the legend_cols=int option to bokeh?

@philippjfr
Copy link
Member

Thanks for the issue. This would have to be implemented in Bokeh first, see bokeh/bokeh#3880

@kidpixo
Copy link

kidpixo commented Sep 3, 2021

@rchurt In element.py(L2059) legend_cols is only checked for True, any other value result in a vertical legend.

plot.legend.orientation = 'horizontal' if self.legend_cols else 'vertical'

@maximlt
Copy link
Member

maximlt commented Oct 23, 2022

Duplicate of #3780

@maximlt maximlt marked this as a duplicate of #3780 Oct 23, 2022
@maximlt maximlt closed this as completed Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants