holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

sampling an Image should set a label #2180

Open basnijholt opened 6 years ago

basnijholt commented 6 years ago
import holoviews as hv
import numpy as np

hv.notebook_extension()

im = hv.Image(np.random.rand(10, 10))
im.sample(x=0) * im.sample(x=0.1)

produces download

However, I would expect to see: download 1

jlstevens commented 6 years ago

Good suggestion!

philippjfr commented 6 years ago

I agree this makes sense, although I think maybe the correct way of handling this might be to revive the idea of constant dimensions or cdims. If the user supplies a custom label I wouldn't expect that to be overridden so the label might not be the best mechanism for this.