Skip to content

Commit

Permalink
Merge 3394844 into 86794c1
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 11, 2016
2 parents 86794c1 + 3394844 commit da07dc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/Homepage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('matplotlib')\n",
"hv.notebook_extension('bokeh')\n",
"fractal = hv.Image(np.load('mandelbrot.npy'))\n",
"\n",
"((fractal * hv.HLine(y=0)).hist() + fractal.sample(y=0))"
Expand Down Expand Up @@ -52,10 +52,11 @@
},
"outputs": [],
"source": [
"%%output backend='matplotlib'\n",
"%%opts Points [scaling_factor=50] Contours (color='w')\n",
"dots = np.linspace(-0.45, 0.45, 19)\n",
"\n",
"hv.HoloMap({y: (fractal * fractal.sample([(i,y) for i in dots]).to.points(['x','y'], 'z') +\n",
"hv.HoloMap({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",
Expand Down

0 comments on commit da07dc7

Please sign in to comment.