How to use ax.get_ylim() in matplotlib,plt.show()