Commit f89a3c25 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Investigates pulses

Showing with 3 additions and 1 deletion
+3 -1
...@@ -274,11 +274,13 @@ class OhmPiHardware: ...@@ -274,11 +274,13 @@ class OhmPiHardware:
def _plot_readings(self): def _plot_readings(self):
# Plot graphs # Plot graphs
fig, ax = plt.subplots(nrows=2, sharex=True) fig, ax = plt.subplots(nrows=3, sharex=True)
ax[0].plot(self.readings[:, 0], self.readings[:, 3], '-r', marker='.', label='iab') ax[0].plot(self.readings[:, 0], self.readings[:, 3], '-r', marker='.', label='iab')
ax[0].set_ylabel('Iab [mA]') ax[0].set_ylabel('Iab [mA]')
ax[1].plot(self.readings[:, 0], self.readings[:, 2] * self.readings[:, 4], '-b', marker='.', label='vmn') ax[1].plot(self.readings[:, 0], self.readings[:, 2] * self.readings[:, 4], '-b', marker='.', label='vmn')
ax[1].set_ylabel('Vmn [mV]') ax[1].set_ylabel('Vmn [mV]')
ax[1].plot(self.readings[:, 0], self.readings[:, 1], '-g', marker='.', label='pulse')
ax[1].set_ylabel('Vmn [mV]')
fig.legend() fig.legend()
plt.show() plt.show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment