Avoiding zero values for alpha in waves_image callback
"source": [
"import holoviews as hv\n",
"import numpy as np\n",
- "hv.extension()"
+ "hv.extension('matplotlib')"
]
},
{
"def waves_image(alpha, beta):\n",
" return hv.Image(np.sin(((ys/alpha)**alpha+beta)*xs))\n",
"\n",
- "waves_image(0,0) + waves_image(0,4)"
+ "waves_image(1,0) + waves_image(1,4)",
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "dmap[0,1] + dmap.select(alpha=1, beta=2)"
+ "dmap[1,2] + dmap.select(alpha=1, beta=2)",
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "dmap.redim.range(alpha=(0,5.0), beta=(1,5.0))"
+ "dmap.redim.range(alpha=(1,5.0), beta=(1,6.0))",
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "dmap.redim.values(alpha=[0,1,2], beta=[0.1, 1.0, 2.5])"
+ "dmap.redim.values(alpha=[1,2,3], beta=[0.1, 1.0, 2.5])",
]
},
{
