Skip to content

Commit

Permalink
examples: ad4020_example: Display current device name in plot titles
Browse files Browse the repository at this point in the history
Print the name of the current ADC device in plot titles.

Signed-off-by: Marcelo Schmitt <[email protected]>
  • Loading branch information
machschmitt committed May 23, 2024
1 parent 44dcd49 commit 50b73e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ad4020_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

plt.figure(1)
plt.clf()
plt.title("AD4020 Time Domain Data")
plt.title(dev_name.upper() + " Time Domain Data")
plt.plot(x, voltage)
plt.xlabel("Data Point")
plt.ylabel("Voltage (V)")
Expand All @@ -45,7 +45,7 @@

plt.figure(2)
plt.clf()
plt.title("AD4020 Spectrum (Volts absolute)")
plt.title(dev_name.upper() + " Spectrum (Volts absolute)")
plt.semilogy(f, Pxx_abs)
plt.ylim([1e-6, 4])
plt.xlabel("frequency [Hz]")
Expand Down

0 comments on commit 50b73e9

Please sign in to comment.