Holoviews: Document how to control legends

Created on 1 Jun 2018  路  2Comments  路  Source: holoviz/holoviews

The Styling Plots user guide provides a guide on styling plots currently focused on colors, cycles and colormaps. It would be good to also add a section on controlling legends.

tag plotting docs

Most helpful comment

This would be great. At the moment the only support for legends I have been able to find is the legend_example in the gallery, and proper legends is fairly important for most figures.

All 2 comments

This would be great. At the moment the only support for legends I have been able to find is the legend_example in the gallery, and proper legends is fairly important for most figures.

I would especially like to know how to force a legend to be shown. For example, if I plot multiple curves as an overlay, a legend is shown by default, but I don't know how to show a legend for just a single curve. I've tried using the show_legend option, but this doesn't work:

import holoviews as hv
hv.extension("matplotlib")

hv.Curve([1,2,3], label="label").opts(show_legend=True)
Was this page helpful?
0 / 5 - 0 ratings