Skip to content

Commit 391a95b

Browse files
committed
Replaced hnx.drawing.draw with hnx.draw
1 parent fe902b7 commit 391a95b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tutorials/basic/Basic 2 - Visualization Methods.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
}
115115
],
116116
"source": [
117-
"hnx.drawing.draw(H)"
117+
"hnx.draw(H)"
118118
]
119119
},
120120
{
@@ -151,7 +151,7 @@
151151
}
152152
],
153153
"source": [
154-
"hnx.drawing.draw(H.dual())"
154+
"hnx.draw(H.dual())"
155155
]
156156
},
157157
{
@@ -254,10 +254,10 @@
254254
"plt.figure(figsize=(12, 6))\n",
255255
"\n",
256256
"plt.subplot(121)\n",
257-
"pos = hnx.drawing.draw(H, return_pos=True)\n",
257+
"pos = hnx.draw(H, return_pos=True)\n",
258258
"\n",
259259
"plt.subplot(122)\n",
260-
"hnx.drawing.draw(H, pos=pos, fill_edges=True,\n",
260+
"hnx.draw(H, pos=pos, fill_edges=True,\n",
261261
" node_label_alpha=0.0, edge_label_alpha=0.0,\n",
262262
")"
263263
]
@@ -297,7 +297,7 @@
297297
}
298298
],
299299
"source": [
300-
"hnx.drawing.draw(H, with_edge_labels=False, with_node_labels=False)"
300+
"hnx.draw(H, with_edge_labels=False, with_node_labels=False)"
301301
]
302302
}
303303
],

0 commit comments

Comments
 (0)