在 Python Matplotlib 中绘制盒须图时出现意外的关键字参数“标签”

Sas*_*nko 4 python matplotlib

我正在使用 python matplotlib 版本 1.4.3 当我尝试设置label参数时:

import matplotlib.pyplot as plt

data = [[1,2,3],[4,5,6],[5,6,7]] 
plt.boxplot(data, label=list('abc'))
plt.show()
Run Code Online (Sandbox Code Playgroud)

我得到错误:

TypeError: boxplot() got an unexpected keyword argument 'label'

whilelabel是一个文档参数http://matplotlib.org/api/pyplot_api.html

War*_*ser 6

再次检查文档字符串。论据是labels