I try to implement an interactive histogram in holoview where you can change the upper limit (so I can decide whether I want to see outliers or not). I am using bokeh as backend.
But unfortunately adjusting the slidebar only recomputes the histogram but does not adjust the x- and y-coordinates so you have to zoom in/out manually you want to see the changes. Is this a normal behaviour?
I give you a minimal example:
import numpy as np
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')
a=np.array([1,1,11,1,1,1,1,1,1,1,2,2,2,2,2,5,5,5,30])
def hist_creater(upper_limit):
frequencies, edges=np.histogram(a,range=(0,upper_limit),bins=10)
return hv.Histogram((edges, frequencies))
dmap=hv.DynamicMap(hist_creater,kdims=["upper_bound_for_weight"]).redim.range(upper_bound_for_weight=(10,100))
dmap.opts(width=300)