输入:

'''
Created on 2018年12月12日

@author: hcl
'''

import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
 
file_path = 'Realtime_TH.csv'
msg = pd.read_csv(file_path)
# print(msg.shape)  #(1917, 6)
# print(msg.head())
# print(msg.tail())
X = range(msg.shape[0])
Y = msg['Temp']
plt.plot(X,Y)
plt.show()

结果:

python绘制环境曲线

相关文章: