maptplolib clim function code example Example: get xlim python ax=plt.subplot(111) ylims=ax.get_ylim() xlims=ax.get_xlim()