Files
hpos-data/scripts/plot_led_adc.py

21 lines
409 B
Python
Raw Normal View History

2024-01-16 15:29:30 +05:30
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_excel("data_dev7_6.xlsx", sheet_name="removed")
# print(df)
print(df.describe())
# Plot all lines on the same graph
# df["led1Buffer"].plot(label="LED 1")
# df["led2Buffer"].plot(label="LED 2")
df["led3Buffer"].plot(label="LED 3")
# df["led4Buffer"].plot(label="LED 4")
# Add legend to the plot
plt.legend()
# Display the plot
plt.show()