Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option group_label does not work when plots are overlaid #1349

Open
1 task
yt87 opened this issue Jun 3, 2024 · 0 comments
Open
1 task

Option group_label does not work when plots are overlaid #1349

yt87 opened this issue Jun 3, 2024 · 0 comments

Comments

@yt87
Copy link

yt87 commented Jun 3, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant