holoviews icon indicating copy to clipboard operation
holoviews copied to clipboard

Weird behaviour of `hv.dim` vs `.redim`

Open marfel opened this issue 2 years ago • 1 comments

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

d5a8fa146416facfebd518d9bcd3cdfd0f1a0d7a

marfel avatar Sep 30 '22 07:09 marfel

Originally in: https://discourse.holoviz.org/t/dim-vs-redim-confusion/4305

marfel avatar Sep 30 '22 07:09 marfel