提示:TypeError: title() missing 1 required positional argument: 'label',求解。

import numpy as np
import matplotlib.pyplot as plt
plt.subplot(111,polar = True)
dataLenth = 5
angles = np.linspace(0,2*np.pi,dataLenth,endpoint=False)
labels =['沟通能力','业务理解能力','逻辑思维能力','快速学习能力','工具使用能力']
data = [2,3.5,4,4.5,5]
data = np.concatenate((data, [data[0]]))
angles = np.concatenate((angles, [angles[0]]))
plt.polar(angles,data,color = "r",marker = "o")
plt.xticks(angles,labels)
plt.title(t = "某数据分析师的综合评级")
plt.savefig("D:/pyx/polarplot.jpg")
上面是相关代码,运行后提示错误:TypeError: title() missing 1 required positional argument: 'label',求解。

plt.title(label= "某数据分析师的综合评级")

title有个位置参数,是必须赋予的,你这里面plt.title(t = "某数据分析师的综合评级")应该改为plt.title("某数据分析师的综合评级")