def sine_curve(phase, freq):
xvals = [0.1* i for i in range(100)]
return hv.Curve((xvals, [np.sin(phase+freq*x) for x in xvals]))
# When run live, this cell's output should match the behavior of the GIF below
dmap = hv.DynamicMap(sine_curve, kdims=['phase', 'frequency'])
dmap.redim.range(phase=(0.5,1), frequency=(0.5,1.25))
(This is taken from DynamicMap — HoloViews v1.19.1)
In the demonstration, phase and frequency can change by roughly 0.001 step. But in my system, it changes only 0.25 (phase) .
How to change the step in the redim.range ?
While I though by setting redim.step like:
import numpy as np
def sine_curve(phase, freq):
xvals = [0.1* i for i in range(100)]
return hv.Curve((xvals, [np.sin(phase+freq*x) for x in xvals]))
# When run live, this cell's output should match the behavior of the GIF below
dmap = hv.DynamicMap(sine_curve, kdims=['phase', 'frequency'])
dmap.redim.step(phase=0.001,freqency=0.001)
dmap.redim.range(phase=(0.5,1), frequency=(0.5,1.25))
But nothing changes.