In an experiment I conducted, I gathered the temperature data every 2 seconds. The experiment lasted over 3000s.
I tried plotting my findings with matplotlib
with this sample code, after previously having imported each csv column into separate lists.
plt.plot(time, temperature)
plt.xlabel('Time' + r'$\left(s\right)$')
plt.ylabel('Temperature' + r'$\left(C\right)$')
# plt.xticks(np.arange(0, 3500, 500.0))
# plt.yticks(np.arange(0, 20, 2))
# plt.style.use('fivethirtyeight')
plt.show()
My result is this:
How can I improve this:
- in order to make it smoother (maybe be experiment design - every 1 seconds data collection)
- in order to make it more scientific (adding legend and writing celsius symbol instead of C for temperature units)
Any other helpful suggestions are welcome.
Edit: Sample Data
Time,Temperature
0,19.77317518
2,19.77317518
4,19.77317518
6,19.77317518
8,19.77317518
10,19.77317518
12,19.77317518
14,19.77317518
16,19.77317518
18,19.77317518
...
40,19.36848822
42,19.36848822
44,20.379735
46,20.17760174
48,20.379735