Issue ylims PyPlot Image Size

I have an issue when plotting on PyPlot. When I set the ylims to a big value (2000-5000) the printed image gets a big size with the right plot. How can I fix to print the image at the top of the cell despite the ylims?