matplotlib.axis.YAxis.get_tightbbox

YAxis.get_tightbbox(renderer)

返回包围轴的边界框。它只计算刻度线标签、轴标签和偏移文本。