python3.6 pl.legend无法显示图例,报错(legend only accepts two non-keyword arguments)
一、环境win10,notebook,python3.6二、报错描述:输出图上不显示图例原码:importmatplotlib.pyplotaspltimportnumpyasnpimportpylabasplx1=[1,2,3,4,5]y1=[1,4,9,16,25]x2=[1,2,4,6,8]y2=[2,4,8,12,16]plot1=pl.plot(x1,y1,'r')plot2=pl.pl