Skip to content

Commit

Permalink
Updated RGB, Raster, Scatter, Spikes and Spline
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed May 31, 2017
1 parent bd8a84c commit a62ff9b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/elements/matplotlib/RGB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('bokeh')"
"hv.notebook_extension()"
]
},
{
Expand Down Expand Up @@ -114,9 +114,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:science]",
"display_name": "Python 2",
"language": "python",
"name": "conda-env-science-py"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
Expand Down
2 changes: 1 addition & 1 deletion examples/elements/matplotlib/Raster.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('bokeh')"
"hv.notebook_extension()"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions examples/elements/matplotlib/Scatter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('bokeh')"
"hv.notebook_extension()"
]
},
{
Expand Down Expand Up @@ -115,9 +115,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:science]",
"display_name": "Python 2",
"language": "python",
"name": "conda-env-science-py"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
Expand Down
10 changes: 5 additions & 5 deletions examples/elements/matplotlib/Spikes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('bokeh')"
"hv.notebook_extension()"
]
},
{
Expand All @@ -43,7 +43,7 @@
},
"outputs": [],
"source": [
"%%opts Spikes (line_alpha=0.4) [spike_length=0.1]\n",
"%%opts Spikes (alpha=0.4) [spike_length=0.1]\n",
"xs = np.random.rand(50)\n",
"hv.Spikes(xs)"
]
Expand Down Expand Up @@ -122,17 +122,17 @@
},
"outputs": [],
"source": [
"%%opts Spikes (line_alpha=0.2)\n",
"%%opts Spikes (alpha=0.2)\n",
"points = hv.Points(np.random.randn(500, 2))\n",
"points << hv.Spikes(points['y']) << hv.Spikes(points['x'])"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:science]",
"display_name": "Python 2",
"language": "python",
"name": "conda-env-science-py"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
Expand Down
8 changes: 4 additions & 4 deletions examples/elements/matplotlib/Spline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"hv.notebook_extension('bokeh')"
"hv.notebook_extension()"
]
},
{
Expand All @@ -41,16 +41,16 @@
},
"outputs": [],
"source": [
"%%opts Curve (color='#D3D3D3') Spline (line_width=6 color='green')\n",
"%%opts Curve (color='#D3D3D3') Spline (linewidth=6 edgecolor='green')\n",
"points = [(-0.3, -0.3), (0,0), (0.25, -0.25), (0.3, 0.3)]\n",
"hv.Spline((points,[])) * hv.Curve(points)"
"hv.Spline((points, [1,4,4,4])) * hv.Curve(points)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that the Bokeh ``Spline`` does not support the same control codes as the [matplotlib version](../matplotlib/Spline.ipynb) which is why the codes are supplied above as an empty list."
"The first argument to ``Splines`` are the control point positions and the integers in the second list are the control codes, as documented in the [matplotlib splines documentation](http://matplotlib.org/api/path_api.html)."
]
}
],
Expand Down

0 comments on commit a62ff9b

Please sign in to comment.