-a
This commit is contained in:
parent
3b17facf2e
commit
8d39a21777
@ -0,0 +1,31 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
freq = 800
|
||||
freq2 = 820
|
||||
dt = 0.00001
|
||||
|
||||
x = np.arange(0.0,1.0,dt)
|
||||
eod = np.sin(x * 2 *np.pi *freq) + np.sin(x * 2* np.pi *freq * 2)* 0.5
|
||||
eod2 = np.sin(x * 2 *np.pi *freq2) + np.sin(x * 2* np.pi *freq2 * 2)* 0.5
|
||||
|
||||
fig = plt.figure(figsize = (5., 7.5))
|
||||
|
||||
ax = fig.add_subplot(311)
|
||||
ax.plot(x, eod, color = 'darkgreen', linewidth = 1.0)
|
||||
ax.set_xlabel('time[s]')
|
||||
ax.set_ylabel('voltage [mV]')
|
||||
|
||||
ax = fig.add_subplot(312)
|
||||
ax.plot(x, eod2, color = 'crimson', linewidth = 1.0)
|
||||
ax.set_xlabel('time[s]')
|
||||
ax.set_ylabel('voltage [mV]')
|
||||
|
||||
ax = fig.add_subplot(313)
|
||||
ax.plot(x, eod+ eod2 *0.05, color = 'lightblue', linewidth = 1.0)
|
||||
ax.set_xlabel('time[s]')
|
||||
ax.set_ylabel('voltage [mV]')
|
||||
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
plt.savefig('eodsTest.pdf')
|
Loading…
Reference in New Issue
Block a user