Skip to content

Commit

Permalink
Small notebook fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 14, 2017
1 parent f19bdd6 commit bb13319
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/gallery/demos/matplotlib/stocks_example.ipynb
Expand Up @@ -42,7 +42,7 @@
"\n",
"def get_curve(data, label=''):\n",
" df = pd.DataFrame(data)\n",
" df['date'] = df.date.astype(np.datetime64)\n",
" df['date'] = df.date.astype('datetime64[ns]')\n",
" return hv.Curve(df, ('date', 'Date'), ('adj_close', 'Price'), label=label)\n",
"\n",
"hv.Dimension.type_formatters[np.datetime64] = '%Y'\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/reference/elements/matplotlib/BoxWhisker.ipynb
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"%%opts BoxWhisker [width=600 height=400 show_legend=False] (whisker_color='gray' color='white')\n",
"%%opts BoxWhisker [aspect=2 fig_size=200 show_legend=False] (whiskerprops={'color': 'gray'})\n",
"groups = [chr(65+g) for g in np.random.randint(0, 3, 200)]\n",
"hv.BoxWhisker((groups, np.random.randint(0, 5, 200), np.random.randn(200)),\n",
" ['Group', 'Category'], 'Value').sort()"
Expand Down
3 changes: 2 additions & 1 deletion examples/reference/elements/matplotlib/Distribution.ipynb
Expand Up @@ -63,7 +63,8 @@
"outputs": [],
"source": [
"%%opts Distribution [filled=False] (alpha=1)\n",
"hv.NdOverlay({bw: hv.Distribution(normal).opts(plot=dict(bandwidth=bw)) for bw in [0.05, 0.1, 0.5, 1]})"
"hv.NdOverlay({bw: hv.Distribution(normal).opts(plot=dict(bandwidth=bw))\n",
" for bw in [0.05, 0.1, 0.5, 1]}, 'Bandwidth')"
]
},
{
Expand Down

0 comments on commit bb13319

Please sign in to comment.