Which function would you use to set the limits for x-axis of the plot ?
xlim()
Reason — The xlim() function is used to set the limits for the x-axis of a plot in Matplotlib.