实例: import matplotlib.pyplot as plt temperatures = [8, 9, 13, 18, 23, 27] months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] plt.bar(months, temperatures)#分别设置x轴和y轴 plt.ylabel("标注y轴") plt.show() child::坐标轴标注 child::坐标记号