In [4]:
import matplotlib.pyplot as plt
import numpy as np

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t, s)

plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.title('About as simple as it gets, folks')
plt.grid(True)
plt.savefig("test.png")
plt.show()


0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 time (s) 0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 voltage (mV) About as simple as it gets, folks

In [ ]: