如何使用matplotlib中的plotTC函数在graoh中添加标签?

问题描述 投票:0回答:1

[In this code我想根据颜色在每个函数上加标签,我试图在label内添加plotTC()参数,但会引发错误TypeError: plotTC() got an unexpected keyword argument 'labels'

我该怎么做?

python matplotlib
1个回答
0
投票

pyplotplot()函数的正确参数是label,而不是labels。检查文档here。所以你应该使用类似

© www.soinside.com 2019 - 2024. All rights reserved.