matplotlib get ylim values November 13, 2022 by Tarik Just use axes.get_ylim(), it is very similar to set_ylim. From the docs: get_ylim() Get the y-axis range [bottom, top]