plt.xlim([25, 50])
Here is what the above code is Doing:
1. We’re creating a figure with a size of 8×6 inches.
2. We’re creating an axes object on that figure.
3. We’re plotting a histogram of the data on that axes.
4. We’re setting the x-axis limits to be between 25 and 50.