Set also xlim to the size of the input