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 10:08:04 浏览: 119
DataGrip软件包
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.xlabel('x')
plt.ylabel('y')
plt.title('Three Curves')
plt.legend()
plt.show()
阅读全文