hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

Option group_label does not work when plots are overlaid

Open yt87 opened this issue 1 year ago • 0 comments

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at Discourse instead. Issues without the required information below may be closed immediately.

ALL software version info

hvplot                    0.10.0             pyhd8ed1ab_0    conda-forge
holoviews                 1.18.3             pyhd8ed1ab_0    conda-forge
bokeh                     3.4.1              pyhd8ed1ab_0    conda-forge

Description of expected behavior and the observed behavior

One can specify legend title with option group_label. However, the title disappears when 2 or more plots are overlaid. In the example below, p1 and p2 display the title, p1 * p2 does not.

Complete, minimal, self-contained example code that reproduces the issue

# code goes here between backticks
df = pd.DataFrame([[0.2, 0.7], [0.8, 0.3]], index=[0, 1], columns=['a', 'b'])
p1 = df.hvplot.scatter(group_label='column')
p2 = df.hvplot.line(group_label='column')
p1 * p2

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

bokeh_plot

  • [ ] I may be interested in making a pull request to address this

yt87 avatar Jun 03 '24 18:06 yt87