Skip to content

Commit 26d218b

Browse files
authored
Rm deprecated np.row_stack in favor of vstack. (#7390)
1 parent 0d878d8 commit 26d218b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

networkx/drawing/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ def planar_layout(G, scale=1, center=None, dim=2):
938938
raise nx.NetworkXException("G is not planar.")
939939
pos = nx.combinatorial_embedding_to_pos(embedding)
940940
node_list = list(embedding)
941-
pos = np.row_stack([pos[x] for x in node_list])
941+
pos = np.vstack([pos[x] for x in node_list])
942942
pos = pos.astype(np.float64)
943943
pos = rescale_layout(pos, scale=scale) + center
944944
return dict(zip(node_list, pos))

0 commit comments

Comments
 (0)