Ability to control spacing between legend labels
See original GitHub issueMy issue is that I’m plotting many time series in one plot, which means there are many legend labels (49, to be exact). It seems that multi-column legends are yet to be implemented in bokeh (see #4529 and bokeh/bokeh#3880). So a bokeh legend can only be a single column (or row, which I’m not interested in). This means my only option is to make the plot super long (i.e. a large height
input to opts
) or to reduce the fontsize of the legend and make it more compact. The fontsize of legend labels can be controlled using p.opts(fontsize={'legend': 5}
, but this doesn’t change the actual spacing between legend labels (so the legend height stays the same). I’d like to be able to also change the spacing between legend labels so that I can fit all 49 labels on one reasonably-sized plot. Is this already possible or, if not, could it be implemented in holoviews
? Alternatively, could appropriate legend label spacing be determined automatically from the fontsize
?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Reopened and given a new status:
Thanks for confirming @jbednar, have moved this issue to bokeh/bokeh#11326.