Skip to content

Commit 27755cc

Browse files
author
xuming
committed
update draw.py.xuming 20170425
1 parent c277d23 commit 27755cc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

03scipy/Gaussian.png

20.2 KB
Loading

tool/draw.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
@description:
44
@author:XuMing
55
"""
6-
import numpy as np
7-
import matplotlib.pyplot as plt
86
import time
97

8+
import matplotlib.pyplot as plt
9+
import numpy as np
10+
1011
# plt.ion() #开启interactive mode
1112
x = np.linspace(0, 50, 1000)
1213
plt.figure(1) # 创建图表1
@@ -17,5 +18,5 @@
1718
plt.figure(2) # 创建图表2
1819
plt.plot(x, np.cos(x))
1920
plt.draw()
20-
time.sleep(2)
21-
print 'it is ok'
21+
time.sleep(1)
22+
print('it is ok')

0 commit comments

Comments
 (0)