plot iniziale
This commit is contained in:
19
plot_temperatura.py
Normal file
19
plot_temperatura.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
df = pd.read_csv("data.csv")
|
||||
df["time_s"] = df["time since start [ms]"] / 1000.0
|
||||
|
||||
fig, ax = plt.subplots(figsize=(12, 5))
|
||||
|
||||
ax.plot(df["time_s"], df["temp_amb IR [C]"], label="Temperatura ambiente", linewidth=1)
|
||||
ax.plot(df["time_s"], df["temp_obj IR [C]"], label="Temperatura scatola", linewidth=1)
|
||||
|
||||
ax.set_xlabel("Tempo [s]")
|
||||
ax.set_ylabel("Temperatura [°C]")
|
||||
ax.set_title("Profilo termico scatola in forno")
|
||||
ax.legend()
|
||||
ax.grid(True, alpha=0.3)
|
||||
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user