#coding=utf-8
from matplotlib import pyplot as plt
plt.figure(figsize=(20,15),dpi=50)
from matplotlib import font_manager
my_font = font_manager.FontProperties(fname='C:\\Windows\\Fonts\\simsun.ttc',size=12)
x = range(11,31)
y=[1,0,1,2,4,3,2,3,4,4,5,6,5,4,3,3,1,1,1,4]
_x = list(x)
_xticks_labels = ["{}岁".format(i) for i in range(11,31)]
plt.xticks(_x,_xticks_labels,fontproperties= my_font)
plt.xlabel("岁数",fontproperties=my_font)
plt.ylabel("个数",fontproperties=my_font)
plt.title("数量趋势",fontproperties=my_font)
plt.plot(x,y)
plt.show()