I am trying to display data on a graph between 2002-2022 as shown in the attached image. I tried some methods to set it but it's not executing. How do I manually set the limits so the graphs do not show a compressed plot.
Asked
Active
Viewed 151 times
0

Nathan
- 3,558
- 1
- 18
- 38

Sumeet Omalur
- 9
- 1
-
4try `plt.xlim('2002', '2022')` – Chris Adams Jan 29 '20 at 11:21
-
Does this answer your question? [Limit Range on X Axis Scatter Plot Pandas MatplotLib](https://stackoverflow.com/questions/34404495/limit-range-on-x-axis-scatter-plot-pandas-matplotlib) – Mykola Zotko Jan 29 '20 at 12:15