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

Skip to content

Commit b3d3ac3

Browse files
committed
Merge pull request #4926 from ericmjl/mep12-log_test.py
Mep12 log test.py
2 parents 114a38a + ad994c1 commit b3d3ac3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/usr/bin/env python
2-
from pylab import *
1+
import matplotlib.pyplot as plt
2+
import numpy as np
33

44
dt = 0.01
5-
t = arange(dt, 20.0, dt)
5+
t = np.arange(dt, 20.0, dt)
66

7-
semilogx(t, exp(-t/5.0))
8-
grid(True)
7+
plt.semilogx(t, np.exp(-t/5.0))
8+
plt.grid(True)
99

10-
show()
10+
plt.show()

0 commit comments

Comments
 (0)