Unemp_data.plot(figsize=(15,6), title = “unemployment rate”, lw=1.5)
This is a code to plot the unemployment data i got from FRED, the graph has x interval of 10 years, how do i manipulate it to display intervals of 5 years? And how do i manipulate it to show only a specific interval?(say, from 2014 to 2019)
I tried using plt.xticks([1949, 1959, 1969, 1979, 1989, 1999, 2009, 2019])
Didnt work
New contributor
daniel evan300 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.