import matplotlib.pyplot as pltfrom matplotlib.font_manager import FontPropertiesfont = FontProperties(fname=r"c:/windows/fonts/msyh.ttc", size=15)plt.title("散点图练习", fontproperties=font)plt.scatter([1, 2, 3, 4, 5, 6], [2, 3, 4, 6, 9, 12])plt.xlabel('横坐标', fontproperties=font)plt.ylabel('纵坐标', fontproperties=font)plt.show()