Take this function
offset = 0
def plot_generator(overlay):
global offset
while True:
ys = np.random.rand(10) + offset
offset += 0.1
if overlay:
yield hv.Curve(ys) * hv.Scatter(ys)
else:
yield hv.Curve(ys)
get_dm = lambda overlay: hv.DynamicMap(
plot_generator(overlay), streams=[hv.streams.Stream.define("Next")()]
).opts(norm=dict(framewise=True))
Now everything is fine like this:
dm = get_dm(overlay=False)
dm
dm.periodic(0.5) #next cell
gives:

But when there is an overlay, it doesn't work:
dm = get_dm(overlay=True)
dm
dm.periodic(0.5) #next cell
gives:

This blocks python-adaptive/adaptive#186.
Take this function
Now everything is fine like this:
gives:

But when there is an overlay, it doesn't work:
gives:

This blocks python-adaptive/adaptive#186.