matplotlib.axes.Axes.use_sticky_edges#

property Axes.use_sticky_edges#

在自动缩放时,是否遵守所有 Artist.sticky_edges

默认是 True

将此设置为 False 可以确保即使绘图包含图像(例如,这通常会强制视图限制与其数据限制一致),指定的边距也将被应用。

更改此属性不会改变图表,直到调用 autoscaleautoscale_view