Skip to content

Commit ad994c1

Browse files
committed
MEP12 to log_test.py
1 parent 1caffef commit ad994c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/pylab_examples/log_test.py

+6-6
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)