data=[['0067137145'], ['20230608', '20230609', '20230610', '20230612', '20230613', '20230614', '20230615', '20230616', '20230617', '20230618', '20230618', '20230620', '20230626', '20230627', '20230630', '20230701', '20230702', '20230703', '20230704', '20230705', '20230707', '20230708', '20230709', '20230710', '20230712', '20230714'], ['711975', '723704', '735266', '763579', '737206', '738794', '730975', '755247', '640525', '514675', '235175', '741625', '767550', '712925', '767100', '728275', '719250', '743800', '730400', '726169', '742450', '750325', '729650', '700372', '725275', '740322'], ['107', '376', '1737', '671', '1143', '5631', '50', '303', '425', '0', '383', '575', '625', '100', '25', '1051', '100', '0', '25', '4006', '0', '50', '275', '103', '1', '678'], ['105', '193', '1949', '947', '672', '2299', '107', '480', '389', '0', '0', '466', '740', '213', '17', '764', '95', '0', '5', '1195', '30', '51', '337', '119', '12', '1053']], [['0067137178'], ['20230608', '20230609', '20230611', '20230612', '20230613', '20230614', '20230615', '20230617', '20230619', '20230620', '20230621', '20230708', '20230709', '20230713', '20230715', '20230718'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '722470', '0', '0', '0', '0'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1029', '0', '0', '0', '0'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1283', '0', '0', '0', '0']] python画图: data[0]为标签,data[1]为横坐标x,data[2]为纵坐标y1,data[3]为纵坐标y2,data[4]为纵坐标y3 写出代码
时间: 2023-08-20 20:08:04 浏览: 93
import matplotlib.pyplot as plt
# 获取数据
labels = data[0]
x = data[1]
y1 = data[2]
y2 = data[3]
y3 = data[4]
# 绘制图形
plt.plot(x, y1, label='y1')
plt.plot(x, y2, label='y2')
plt.plot(x, y3, label='y3')
# 添加标题和标签
plt.title('Data Plot')
plt.xlabel('x')
plt.ylabel('y')
# 添加图例
plt.legend()
# 显示图形
plt.show()
阅读全文