import matplotlib.pyplot as plt
import matplotlib as mpl
x = ['越秀区', '荔湾区', '天河区', '海珠区', '番禺区', '黄埔区', '白云区']
y = [1.25328309, 0.44401856, -0.11723704, 1.38033869, -0.82220652, -1.4880753, -0.65012149]
mpl.rcParams['font.family'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False
plt.xlabel("地区", fontsize=13)
plt.ylabel("热度", fontsize=13)
plt.scatter(x, y)
plt.show()
6、7行解决中文问题