Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implemented correct Raster.range #1255
Fix for #1020, it wasn't accessing the masked array directly and hence was returning inconsistent results with Image, which does.
%%opts Raster Image [colorbar=True] tmp = np.random.rand(10,10)-0.5 tmp = np.ma.masked_where(tmp<=0, tmp) hv.Image(tmp)+hv.Raster(tmp)
As we can see the masked values are no longer included in the range but are still indicated via the colorbar and the behavior is now consistent between Raster and Image.