matplotlib

matplotlib.axis.YAxis.get_text_widths

YAxis.get_text_widths(renderer)