How to get a legend for just one line / Curve?

Is it possible in HoloViews to get a legend for just one line or Curve?

import pandas as pd
import holoviews as hv

curve = hv.Curve(range(0, 10), label='just one curve')

The only way to get a legend seems to be creating an Overlay, but this doesn’t work:

However this does work, but yeah this is not very intuitive:
hv.Overlay([curve, curve])

Should I make a feature request for this? Or is a legend for one curve not possible or unwanted?

Based on this SO-question:


It currently isn’t supported but I think you should be able to force a legend by explicitly setting show_legend=True. An issue would probably be good.

Issue created: