Skip to content

Commit

Permalink
Various syntax fixes in notebooks (#3306)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 17, 2018
1 parent 065b701 commit f5e9cce
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 115 deletions.
Expand Up @@ -53,8 +53,6 @@
"np.random.seed(14)\n",
"graph = layout_nodes(nyc_graph, layout=nx.layout.fruchterman_reingold_layout, kwargs={'weight': 'connections'})\n",
"labels = hv.Labels(graph.nodes, ['x', 'y'], ['IATA', 'City'])\n",
"nyc_labels = \n",
"other_labels = "
]
},
{
Expand Down
108 changes: 0 additions & 108 deletions examples/gallery/demos/matplotlib/nyc_taxi_connections.ipynb

This file was deleted.

4 changes: 2 additions & 2 deletions examples/reference/elements/matplotlib/HLine.ipynb
Expand Up @@ -44,8 +44,8 @@
"points = hv.Points((xs,ys))\n",
"\n",
"(points * hv.HLine(ys.mean())).opts(\n",
" opts.HLine(color='#D3D3D3')\n",
" opts.Points(color='blue', linewidth=6))"
" opts.HLine(color='blue', linewidth=6),\n",
" opts.Points(color='#D3D3D3'))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/reference/elements/matplotlib/Spline.ipynb
Expand Up @@ -42,7 +42,7 @@
"spline = hv.Spline((points, [1,4,4,4]))\n",
"\n",
"(spline * hv.Curve(points)).opts(\n",
" opts.Curve(color='#D3D3D3')\n",
" opts.Curve(color='#D3D3D3'),\n",
" opts.Spline(linewidth=6, edgecolor='green'))"
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/reference/elements/matplotlib/VLine.ipynb
Expand Up @@ -45,7 +45,7 @@
"\n",
"(hv.Curve((xs,ys)) * vline).opts(\n",
" opts.Curve(color='#D3D3D3'),\n",
" opts.Vline(color='red', linewidth=6)"
" opts.VLine(color='red', linewidth=6))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/plotly/renderer.py
Expand Up @@ -56,7 +56,7 @@ def __call__(self, obj, fmt='html', divuuid=None):
if isinstance(plot, tuple(self.widgets.values())):
return plot(), mime_types
elif fmt in ('html', 'png', 'svg'):
return self._figure_data(plot, divuuid=divuuid), mime_types
return self._figure_data(plot, fmt, divuuid=divuuid), mime_types
elif fmt == 'json':
return self.diff(plot), mime_types

Expand Down

0 comments on commit f5e9cce

Please sign in to comment.