I would like to have a dynamic map of image that I would like to zoom in in such way that when I zoom in some region that looks to be a single color region, the color scale adapts to that region. I was able to achieve this by using
regrid, but the problem is that I additionally need a histogram which seems to prevent the color scale from adapting. Please see the code below and animation.
import numpy as np import holoviews as hv from holoviews.operation.datashader import regrid hv.extension('bokeh') vector = np.arange(100) data = np.outer(vector, vector) image = hv.Image(data).opts(active_tools=['wheel_zoom']) regrid(image) # here temperature range rescales as zooming # regrid(image).hist() # here it does not :(
Is there a way to achieve adapting color scale and a histogram at the same time?
Thank you for your time.