From bf14068fe4d8ffee6bb63ced96d78b142074f3a1 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 2 Jun 2020 00:49:28 +0200 Subject: [PATCH] Update networkx docstring (#476) * Update networkx docstring * Build docs against dev releases --- .travis.yml | 2 +- hvplot/networkx.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3f5ea14a..edbfcb147 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,7 +82,7 @@ jobs: - &doc_build <<: *default stage: docs - env: DESC="docs" HV_DOC_HTML="true" CHANS=$CHANS_REL + env: DESC="docs" HV_DOC_HTML="true" CHANS=$CHANS_DEV install: - doit env_create $CHANS --python=$PYTHON_VERSION - source activate test-environment diff --git a/hvplot/networkx.py b/hvplot/networkx.py index 497a7ca30..3eef48914 100644 --- a/hvplot/networkx.py +++ b/hvplot/networkx.py @@ -143,15 +143,14 @@ def draw(G, pos=None, **kwargs): node_size : scalar or array, optional (default=300) Size of nodes. If an array is specified it must be the same length as nodelist. - node_color : color string, or array of floats, (default='r') - Node color. Can be a single color format string, - or a sequence of colors with the same length as nodelist. - If numeric values are specified they will be mapped to - colors using the cmap and vmin,vmax parameters. See - matplotlib.scatter for more details. + node_color : color string, node attribute, or array of floats, (default='r') + Can be a single color, the name of an attribute on the nodes or + sequence of colors with the same length as nodelist. If the + node_color references an attribute on the nodes or is a list of + values they will be colormapped using the cmap and vmin, vmax + parameters. node_shape : string, optional (default='o') - The shape of the node. Specification is as matplotlib.scatter - marker, one of 'so^>v