Skip to content

Commit

Permalink
tidy up example notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
poplarShift authored and philippjfr committed Aug 18, 2019
1 parent e5e3f40 commit f997ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions examples/reference/elements/bokeh/Segments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"event = ['A', 'B']\n",
"data = dict(\n",
" start=[np.datetime64('1999'), np.datetime64('2001')],\n",
" end=[np.datetime64('2010'), np.datetime64('2200')],\n",
" end=[np.datetime64('2010'), np.datetime64('2020')],\n",
" start_event = event,\n",
" end_event = event\n",
")"
Expand Down Expand Up @@ -89,15 +89,7 @@
"metadata": {},
"outputs": [],
"source": [
"seg.opts(color='k', line_width=10)"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"seg = hv.Segments(np.c_[np.random.rand(10,4), 40*np.random.rand(10)**2], ['x0', 'y0', 'x1', 'y1'], 'c')\n",
"seg.opts(color=dim('c'), line_width=dim('c'), cmap='viridis_r')"
"seg.opts(color='k', line_width=10, padding=0.1)"
]
},
{
Expand Down Expand Up @@ -215,7 +207,7 @@
"source": [
"s = hv.Segments((x0, y, x1, y, y), vdims=['c'])\n",
"s.opts(xaxis=None, yaxis=None, height=160, width=500, \n",
" toolbar='above', line_width=10, color=dim('c'), cmap='fire_r')"
" toolbar='above', line_width=8, color=dim('c'), cmap='fire_r')"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion examples/reference/elements/matplotlib/Segments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"metadata": {},
"outputs": [],
"source": [
"seg.opts(color='k', linewidth=10)"
"seg.opts(color='k', linewidth=10, padding=0.1)"
]
},
{
Expand Down

0 comments on commit f997ef7

Please sign in to comment.