[In this code我想根据颜色在每个函数上加标签,我试图在label内添加plotTC()参数,但会引发错误TypeError: plotTC() got an unexpected keyword argument 'labels'
label
plotTC()
TypeError: plotTC() got an unexpected keyword argument 'labels'
我该怎么做?
pyplot的plot()函数的正确参数是label,而不是labels。检查文档here。所以你应该使用类似
pyplot
plot()
labels