Skip to content

Commit

Permalink
Rm deprecated np.row_stack in favor of vstack.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Apr 4, 2024
1 parent fbb2d82 commit ccb777b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/drawing/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ def planar_layout(G, scale=1, center=None, dim=2):
raise nx.NetworkXException("G is not planar.")
pos = nx.combinatorial_embedding_to_pos(embedding)
node_list = list(embedding)
pos = np.row_stack([pos[x] for x in node_list])
pos = np.vstack([pos[x] for x in node_list])
pos = pos.astype(np.float64)
pos = rescale_layout(pos, scale=scale) + center
return dict(zip(node_list, pos))
Expand Down

0 comments on commit ccb777b

Please sign in to comment.