I’m struggling to display my integer image 0 values as transparent using rasterize. Looking at the release notes for holoviews=1.14.0 it says this should be possible and refers to Working with Large Data but I still can’t figure it out.
Does anyone know how to use the .redim.nodata(value=0) solution can be applied to a plot with widget selection, e.g. if in the example above da was a stack if some bands and I wanted to call something like
Thanks, @ahuang11. I tried to split it out and then can call redim on image.object. But redim doesn’t get applied and interestingly, image has the selection widget embedded. See Screenshot. I also tried a call to da.hvplot() instead of da.hvplot.image() to no avail. Any other thoughts?
I figured out that the issue comes from having named the data array. Then (values=0) needs to be adjusted with (<Name>=0). However, programatically that is hard if the name of a data array changes dynamically as (da.name=0) does not work. Working example with da0.name='Dummy' and hence (Dummy=0) for the redim.