在大多数情况下,子图符合您的需求。子图是网格系统上的轴。...axes[0, 0].bar([1, 2, 3], [3, 4, 5])
# 绘制horiontal矩形(恒定高度)
axes[1, 0].barh([0.5, 1, 2.5], [0, 1, 2])
# 在轴上绘制一条水平线...axes[1, 1].axhline(0.45)
# 在轴上绘制一条垂直线
axes[0, 1].axvline(0.65)
# 绘制填充的多边形
ax.fill(x, y, color='blue'...,图例 & 布局(Limits, Legends & Layouts)
限制 & 自动缩放(Limits & Autoscaling)
ax.margins(x=0.0, y=0.1)
ax.axis(...'equal')
ax.set(xlim=[0, 10.5], ylim=[-1.5, 1.5])
ax.set_xlim(0, 10.5)
图例
# 设置标题和x轴和y轴标签
ax.set(title