Open maximlt opened 2 years ago
I think adapting the plotly behavior is the simplest path. I guess there could be some argument for the ability to force a legend to be shown even in this case, but someone would need to push for that, and I'd expect most people not to want one even though the option is true, when there is only one curve.
I'd expect most people not to want one even though the option is true, when there is only one curve.
I think this was the reasoning behind the Bokeh/Matplotlib behavior. I vote to be consistent with those two backends.
The
show_legend
option doesn't have the same effect given the selected backend. In the example below withshow_legend=True
the legend is displayed with Plotly. It is not displayed with both Bokeh and Matplotlib. For the sake of consistency, and in particular for hvPlot which will soon support the three backends, it'd be nice to align the behavior of the three backends on this option. My feeling would be to adapt Plotly to what Bokeh/Matplotlib does.