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

legend_opts implemented #4558

Merged
merged 7 commits into from
Aug 21, 2020
Merged

legend_opts implemented #4558

merged 7 commits into from
Aug 21, 2020

Conversation

ahuang11
Copy link
Collaborator

@ahuang11 ahuang11 commented Aug 17, 2020

#4356

import holoviews as hv
hv.extension('bokeh')

ovl = hv.Curve([0, 1, 2], label='BLUE') * hv.Curve([0, 1, 4], label='RED')
ovl.opts('Overlay', legend_opts={'background_fill_alpha': 0.5, 'background_fill_color': 'red'})

image

hv.extension('matplotlib')
ovl = hv.Scatter([0, 1, 2], label='BLUE') * hv.Scatter([0, 1, 4], label='RED')
ovl.opts('Overlay', legend_opts={'facecolor': 'red'})

image

@ahuang11 ahuang11 mentioned this pull request Aug 17, 2020
@jlstevens
Copy link
Contributor

Looks good to me! Thanks for the PR!

@philippjfr
Copy link
Member

Thanks a lot @ahuang11! A few tests would be appreciated checking that the opts are applied to the models.

@philippjfr philippjfr merged commit 79b8624 into master Aug 21, 2020
@philippjfr
Copy link
Member

Thanks again @ahuang11!

@philippjfr philippjfr deleted the legend_opts_add branch April 25, 2022 14:39
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

Successfully merging this pull request may close these issues.

None yet

3 participants