Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce75801

Browse files
committed
Merge pull request#5040 from ericmjl/ginput_demo.py-mep12
mep12 on ginput_demo.py
2 parentse62d9fa +97ca9bb commitce75801

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎examples/pylab_examples/ginput_demo.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
from __future__importprint_function
44

5-
frompylabimportarange,plot,sin,ginput,show
6-
t=arange(10)
7-
plot(t,sin(t))
5+
importmatplotlib.pyplotasplt
6+
importnumpyasnp
7+
t=np.arange(10)
8+
plt.plot(t,np.sin(t))
89
print("Please click")
9-
x=ginput(3)
10+
x=plt.ginput(3)
1011
print("clicked",x)
11-
show()
12+
plt.show()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp