Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a93a9e3

Browse files
committed
Remove interaction directly with the figure
1 parent 6e36175 commit a93a9e3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import matplotlib.pyplot as plt
22

3-
fig = plt.figure()
4-
ax = fig.add_subplot(1, 1, 1)
3+
ax = plt.axes()
54
ax.arrow(0, 0, 0.5, 0.5, head_width=0.05, head_length=0.1, fc='k', ec='k')
65
plt.show()

0 commit comments

Comments
 (0)