Skip to content

Instantly share code, notes, and snippets.

@pierdom
Created November 27, 2017 14:56
Show Gist options
  • Save pierdom/4952eb2187ef19765f6bfd1c627f0183 to your computer and use it in GitHub Desktop.
Save pierdom/4952eb2187ef19765f6bfd1c627f0183 to your computer and use it in GitHub Desktop.
[Holoviews DynamicMap to change dynamically x-axis range] #holoviews #bokeh #visualization #python #datascience
import holoviews as hv
import numpy as np
hv.extension('bokeh')
hv.DynamicMap(lambda i: hv.Curve(np.arange(i)), kdims=['i']).redim.range(i=((10, 20))).opts(norm=dict(framewise=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment