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

rasterize with opts raises warning in latest dev release #5341

Closed
hoxbro opened this issue Jun 21, 2022 · 1 comment · Fixed by #5345
Closed

rasterize with opts raises warning in latest dev release #5341

hoxbro opened this issue Jun 21, 2022 · 1 comment · Fixed by #5345
Milestone

Comments

@hoxbro
Copy link
Member

hoxbro commented Jun 21, 2022

ALL software version info

datashader : 0.14.0
holoviews  : 1.15.0a2

Description of expected behavior and the observed behavior

The combination of rasterize and using opts will give a warning with the latest dev release of holoviews. The warning is not present with version 1.14. The warning is only present with rasterize and not without it.

It seems the warning is only coming from this function:

def _style(self, retval):
"""
Use any applicable OptionTree of the DynamicMap to apply options
to the return values of the callback.
"""
if self.id not in Store.custom_options():
return retval
spec = StoreOptions.tree_to_dict(Store.custom_options()[self.id])
return retval(spec)

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

import holoviews as hv
from holoviews.operation.datashader import rasterize
hv.extension("bokeh")

plot = rasterize(hv.Curve(range(10)))
(plot + plot).opts(shared_axes=False)

Screenshots or screencasts of the bug in action

With holoviews 1.15:
image

With holoviews 1.14:
image

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants