饼图matplotlib'tuple'对象不可调用错误

时间:2017-11-16 15:55:59

标签: python matplotlib pie-chart

import matplotlib.pyplot as plt
labels='bye_runs','legbye_runs','noball_runs','penalty_runs','batsman_runs','extra_runs'  
size=[680,3056,612,10,166009,9519]
plt.pie(size,labels=labels)
plt.show()

这是我的饼图代码,但它将第4行的typeerror显示为

  

TypeError:'tuple'对象不可调用

抱歉这个基本问题。

0 个答案:

没有答案