Skip to content

Commit

Permalink
Merge pull request prody#1815 from jamesmkrieger/fix_networkx
Browse files Browse the repository at this point in the history
fix networkx for updated versions
  • Loading branch information
jamesmkrieger authored May 7, 2024
2 parents 05b3a24 + 6a8b041 commit 3078bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/dynamics/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2355,15 +2355,15 @@ def showTree_networkx(tree, node_size=20, node_color='red', node_shape='o',
networkx.draw_networkx_edges(G, pos=layout)

if np.isscalar(node_shape):
networkx.draw_networkx_nodes(G, pos=layout, withlabels=False, node_size=sizes,
networkx.draw_networkx_nodes(G, pos=layout, label=None, node_size=sizes,
node_shape=node_shape, node_color=colors)
else:
for shape in shape_groups:
nodelist = [nodes[i] for i in shape_groups[shape]]
nodesizes = [sizes[i] for i in shape_groups[shape]]
nodecolors = [colors[i] for i in shape_groups[shape]]
if not nodelist: continue
networkx.draw_networkx_nodes(G, pos=layout, withlabels=False, node_size=nodesizes,
networkx.draw_networkx_nodes(G, pos=layout, label=None, node_size=nodesizes,
node_shape=shape, node_color=nodecolors,
nodelist=nodelist)

Expand Down

0 comments on commit 3078bef

Please sign in to comment.