Skip to content

Commit

Permalink
Updated tests and Tutorial after color_index/size_index changes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 10, 2017
1 parent 2f40d60 commit 75a7e8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/Tutorials/Columnar_Data.ipynb
Expand Up @@ -853,7 +853,7 @@
},
"outputs": [],
"source": [
"%%opts Scatter [scaling_method='width' scaling_factor=2] (color=Palette('Set3') edgecolors='k')\n",
"%%opts Scatter [scaling_method='width' scaling_factor=2 size_index=2] (color=Palette('Set3') edgecolors='k')\n",
"gdp_unem_scatter = macro.to.scatter('Year', ['GDP Growth', 'Unemployment'])\n",
"gdp_unem_scatter.overlay('Country')"
]
Expand Down
2 changes: 1 addition & 1 deletion doc/Tutorials/Containers.ipynb
Expand Up @@ -257,7 +257,7 @@
},
"outputs": [],
"source": [
"%%opts VectorField (color='r') Image (cmap='gray')\n",
"%%opts VectorField [size_index=2] (color='r') Image (cmap='gray')\n",
"x,y = np.mgrid[-10:10,-10:10] * 0.25\n",
"sine_rings = np.sin(x**2+y**2)*np.pi+np.pi\n",
"exp_falloff = 1/np.exp((x**2+y**2)/8)\n",
Expand Down
3 changes: 2 additions & 1 deletion doc/Tutorials/Elements.ipynb
Expand Up @@ -690,6 +690,7 @@
},
"outputs": [],
"source": [
"%%opts VectorField [size_index=3]\n",
"y,x = np.mgrid[-10:10,-10:10] * 0.25\n",
"sine_rings = np.sin(x**2+y**2)*np.pi+np.pi\n",
"exp_falloff = 1/np.exp((x**2+y**2)/8)\n",
Expand All @@ -715,7 +716,7 @@
},
"outputs": [],
"source": [
"%%opts VectorField.A [color_index=2] VectorField.M [color_index=3]\n",
"%%opts VectorField [size_index=3] VectorField.A [color_index=2] VectorField.M [color_index=3]\n",
"hv.VectorField(vector_data, group='A') + hv.VectorField(vector_data, group='M')"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tests/testplotinstantiation.py
Expand Up @@ -347,7 +347,7 @@ def test_points_colormapping(self):

def test_points_colormapping_categorical(self):
points = Points([(i, i*2, i*3, chr(65+i)) for i in range(10)],
vdims=['a', 'b'])
vdims=['a', 'b'])(plot=dict(color_index='b'))
plot = bokeh_renderer.get_plot(points)
plot.initialize_plot()
fig = plot.state
Expand Down

0 comments on commit 75a7e8f

Please sign in to comment.