how to get the limit of plt in y axis code example Example: set axis limits matplotlib axes.set_xlim([xmin, xmax]) axes.set_ylim([ymin, ymax])