Skip to content

Commit

Permalink
Made the matplotlib Layout notebook more consistent with Overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 27, 2017
1 parent 337daa2 commit c018dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/reference/containers/matplotlib/Layout.ipynb
Expand Up @@ -56,7 +56,7 @@
"source": [
"xvals = [0.1* i for i in range(100)]\n",
"curve = hv.Curve((xvals, [np.sin(x) for x in xvals]))\n",
"scatter = hv.Scatter((xvals[::5], range(20)))\n",
"scatter = hv.Scatter((xvals[::5], np.linspace(0,1,20)))\n",
"curve + scatter"
]
},
Expand Down Expand Up @@ -88,7 +88,7 @@
"outputs": [],
"source": [
"curve_list = [ hv.Curve((xvals, [np.sin(f*x) for x in xvals])) for f in [0.5, 0.75]]\n",
"scatter_list = [hv.Scatter((xvals[::5], [f*i for i in range(20)])) for f in [-0.5, 0.5]]\n",
"scatter_list = [hv.Scatter((xvals[::5], f*np.linspace(0,1,20))) for f in [-0.5, 0.5]]\n",
"layout = hv.Layout(curve_list + scatter_list).cols(2)\n",
"layout"
]
Expand Down Expand Up @@ -179,7 +179,7 @@
"source": [
"xvals = [0.1* i for i in range(100)]\n",
"curve = hv.Curve((xvals, [np.sin(x) for x in xvals]), group='Sinusoid', label='Example')\n",
"scatter = hv.Scatter((xvals[::5], range(20)), group='Linear Points', label='Demo')\n",
"scatter = hv.Scatter((xvals[::5], np.linspace(0,1,20)), group='Linear Points', label='Demo')\n",
"layout3 = curve + scatter\n",
"layout3"
]
Expand Down

0 comments on commit c018dc7

Please sign in to comment.