Fixed second example of Homepage notebook
"\n",
"layouts = {y: (fractal * hv.Points(fractal.sample([(i,y) for i in dots])) +\n",
" fractal.sample(y=y) +\n",
- " hv.operation.threshold(fractal, level=np.percentile(fractal.sample(y=y).data, 90)) +\n",
- " hv.operation.contours(fractal, levels=[np.percentile(fractal.sample(y=y).data, 60)]))\n",
+ " hv.operation.threshold(fractal, level=np.percentile(fractal.sample(y=y)['z'], 90)) +\n",
+ " hv.operation.contours(fractal, levels=[np.percentile(fractal.sample(y=y)['z'], 60)]))\n",
" for y in np.linspace(-0.3, 0.3, 21)}\n",
"\n",
"hv.HoloMap(layouts, kdims=['Y']).collate().cols(2)"
