Set Xticks frequency to dataframe index
问题 I currently have a dataframe that has as an index the years from 1990 to 2014 (25 rows). I want my plot to have the X axis with all the years showing. I'm using add_subplot as I plan to have 4 plots in this figure (all of them with the same X axis). To create the dataframe: import pandas as pd import numpy as np index = np.arange(1990,2015,1) columns = ['Total Population','Urban Population'] pop_plot = pd.DataFrame(index=index, columns=columns) pop_plot = df_.fillna(0) pop_plot['Total