Crop image from imagesc

I set the axes YLim to the relevant part. In this case:

set(gca(),'YLim',[0 1]);