holoviews
holoviews copied to clipboard
Weird behaviour of `hv.dim` vs `.redim`
ALL software version info
Firefox 104.0.2 (64-Bit) under Windows 10 Python packages: see attached conda list conda_env.txt
Description of expected behavior and the observed behavior
Normalization via hv.dim
and .redim.range
should behave in the same manner.
Complete, minimal, self-contained example code that reproduces the issue
import holoviews as hv
hv.extension("bokeh")
hv.Scatter([[1, 1, 70], [2, 2, 90]], vdims=["y", "color"]
).opts(color=hv.dim('color').norm(limits=(30, 100)), size=25, cmap="RdYlBu_r") +\
hv.Scatter([[1, 1, 70], [2, 2, 90]], vdims=["y", "color"]
).opts(color='color', size=25, cmap="RdYlBu_r").redim.range(color=(30, 100))
Screenshots or screencasts of the bug in action
Originally in: https://discourse.holoviz.org/t/dim-vs-redim-confusion/4305