Skip to content

Commit

Permalink
Merge pull request #18 from pnnl/hotfix/hyp-110
Browse files Browse the repository at this point in the history
Bug fix for hyp-110: prevents edge labels from disappearing
  • Loading branch information
brendapraggastis authored Jan 27, 2020
2 parents aaca804 + 1b2c042 commit 8f90e48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hypernetx/drawing/rubber_band.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ def draw(H,
node_radius = {v: np.sqrt(a0*(len(v) if type(v) == frozenset else 1)/np.pi)
for v in H.nodes}

# for convenience, we are using setdefault to mutate the argument
# however, we need to copy this to prevent side-effects
edges_kwargs = edges_kwargs.copy()
edges_kwargs.setdefault('edgecolors', plt.cm.tab10(np.arange(len(H.edges))%10))
edges_kwargs.setdefault('facecolors', 'none')

Expand Down

0 comments on commit 8f90e48

Please sign in to comment.