Holoviews: Allow position of legend to be set with coordinate tuple as in Bokeh

Created on 20 Feb 2019  路  4Comments  路  Source: holoviz/holoviews

Bokeh: https://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#location

Legend positions can be set by position names but also by: a (x, y) tuple indicating an absolute location in screen coordinates (pixels from the bottom-left corner).

Holoviews supports the named-positions but not the coordinates.

docs

Most helpful comment

For those landing here after googling for this, the position of the legend can be set with .opts(legend_position='top_left') for example.

All 4 comments

Incidentally, I can't find out how to change the position of a legend (even with just the position name) anywhere in the Holoviews documentation. Legends could be documented better, IMHO.

Agreed, I believe there should be a section about legends in the Customizing Plots user guide. A PR to add that would be greatly appreciated, it should also cover the legend_offset parameter which does allow adjusting the legend in screen space.

I'd be happy to submit a PR, but I don't know how legends work. A bit of a catch-22 馃槄

For those landing here after googling for this, the position of the legend can be set with .opts(legend_position='top_left') for example.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asmith26 picture asmith26  路  4Comments

ceh-creare picture ceh-creare  路  5Comments

jlstevens picture jlstevens  路  6Comments

ericmjl picture ericmjl  路  3Comments

ahuang11 picture ahuang11  路  5Comments