Skip to content

Commit

Permalink
Further replacement of .options with .opts (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens authored and philippjfr committed Jan 10, 2019
1 parent bc4b15e commit b5482c6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/gallery/demos/bokeh/image_range_tool.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"metadata": {},
"outputs": [],
"source": [
"src = mbset_image.options(width=300, height=300)\n",
"tgt = mbset_image.options(width=500, height=500, xaxis=None, yaxis=None)\n",
"src = mbset_image.clone(link=False).opts(width=300, height=300, padding=0.1)\n",
"tgt = mbset_image.opts(width=500, height=500, xaxis=None, yaxis=None, clone=True)\n",
"# Declare a RangeToolLink between the x- and y-axes of the two plots\n",
"RangeToolLink(src, tgt, axes=['x', 'y'])\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/demos/bokeh/lesmis_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"cmaps = ['Greys', 'Reds', 'Greys', 'Greens', 'Blues',\n",
" 'Purples', 'Oranges', 'Greys', 'Greys', 'PuRd', 'Reds', 'Greys']\n",
"\n",
"combined = hv.Overlay([o.options(cmap=cm).sort() for o, cm in zip(overlaid, cmaps)], label='LesMis Occurences')\n",
"combined = hv.Overlay([o.opts(cmap=cm).sort() for o, cm in zip(overlaid, cmaps)], label='LesMis Occurences')\n",
"styled = combined.opts(\n",
" opts.HeatMap(logz=True, clipping_colors={'NaN':(1,1,1,0.)},\n",
" xaxis='top', xrotation=90,\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/demos/matplotlib/autompg_violins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"metadata": {},
"outputs": [],
"source": [
"violin.options(aspect=1.5)"
"violin.opts(aspect=1.5)"
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"hextiles.options(min_count=0) * hv.Bivariate(hextiles)"
"hextiles.opts(min_count=0) * hv.Bivariate(hextiles)"
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"metadata": {},
"outputs": [],
"source": [
"choropleth.options(\n",
"choropleth.opts(\n",
" color='Unemployment', edgecolor='white',\n",
" xaxis=None, yaxis=None, show_grid=False,\n",
" show_frame=False, colorbar=True, fig_size=200)"
Expand Down
3 changes: 1 addition & 2 deletions examples/gallery/demos/matplotlib/us_unemployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
"metadata": {},
"outputs": [],
"source": [
"heatmap.options(fig_size=450, aspect=3, xrotation=45, show_values=False, labelled=[],\n",
" cmap=colors)"
"heatmap.opts(fig_size=450, aspect=3, xrotation=45, show_values=False, labelled=[], cmap=colors)"
]
}
],
Expand Down

0 comments on commit b5482c6

Please sign in to comment.