Skip to content

Commit bf14068

Browse files
authored
Update networkx docstring (#476)
* Update networkx docstring * Build docs against dev releases
1 parent 93b0d2a commit bf14068

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- &doc_build
8383
<<: *default
8484
stage: docs
85-
env: DESC="docs" HV_DOC_HTML="true" CHANS=$CHANS_REL
85+
env: DESC="docs" HV_DOC_HTML="true" CHANS=$CHANS_DEV
8686
install:
8787
- doit env_create $CHANS --python=$PYTHON_VERSION
8888
- source activate test-environment

hvplot/networkx.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,14 @@ def draw(G, pos=None, **kwargs):
143143
node_size : scalar or array, optional (default=300)
144144
Size of nodes. If an array is specified it must be the
145145
same length as nodelist.
146-
node_color : color string, or array of floats, (default='r')
147-
Node color. Can be a single color format string,
148-
or a sequence of colors with the same length as nodelist.
149-
If numeric values are specified they will be mapped to
150-
colors using the cmap and vmin,vmax parameters. See
151-
matplotlib.scatter for more details.
146+
node_color : color string, node attribute, or array of floats, (default='r')
147+
Can be a single color, the name of an attribute on the nodes or
148+
sequence of colors with the same length as nodelist. If the
149+
node_color references an attribute on the nodes or is a list of
150+
values they will be colormapped using the cmap and vmin, vmax
151+
parameters.
152152
node_shape : string, optional (default='o')
153-
The shape of the node. Specification is as matplotlib.scatter
154-
marker, one of 'so^>v<dph8'.
153+
The shape of the node. Specification is as valid bokeh marker.
155154
alpha : float, optional (default=1.0)
156155
The node and edge transparency
157156
cmap : Colormap, optional (default=None)
@@ -163,10 +162,11 @@ def draw(G, pos=None, **kwargs):
163162
edge_width : float, optional (default=1.0)
164163
Line width of edges
165164
edge_color : color string, or array of floats (default='r')
166-
Edge color. Can be a single color format string,
167-
or a sequence of colors with the same length as edgelist.
168-
If numeric values are specified they will be mapped to
169-
colors using the edge_cmap and edge_vmin,edge_vmax parameters.
165+
Can be a single color, the name of an attribute on the edges or
166+
sequence of colors with the same length as the edges. If the
167+
edge_color references an attribute on the edges or is a list of
168+
values they will be colormapped using the edge_cmap and
169+
edge_vmin, edge_vmax parameters.
170170
edge_cmap : Matplotlib colormap, optional (default=None)
171171
Colormap for mapping intensities of edges
172172
edge_vmin,edge_vmax : floats, optional (default=None)

0 commit comments

Comments
 (0)