标签:row 绘制图形 mat book inf 散点图 art img start
import xlrd
import matplotlib.pyplot as plt
bok = xlrd.open_workbook(r‘test.xls‘)
sht = bok.sheets()[0]
row1 = sht.row_values(0)
X=sht.col_values(0 , start_rowx=0, end_rowx=None)
Y=sht.col_values(1 , start_rowx=0, end_rowx=None)
plt.plot(X,Y,"ro")
EXCEL数据示例:
绘制图形示例:
?
标签:row 绘制图形 mat book inf 散点图 art img start
原文地址:https://www.cnblogs.com/tuozizhang/p/11689004.html