輸入xlrd
PLTとしてインポートmatplotlib.pyplot
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 =なし)
Y = sht.col_values(1、start_rowx = 0、end_rowx =なし)
plt.plot(X、Y、 "RO")
EXCELデータの例:
グラフの例: