Puedes hacerlo en principio usando `axis.xaxis.set_major_locator()` y `ax.xaxis.set_major_formatter()` junto a `matplotlib.dates.mdates` para especificar los intervalos. Por años: import datetime import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates start = pd.Timestamp(2016, 1, 1, 12) end = datetime.datetime(2018, 12, 31, 12, 0, 0) times = pd.date_range(freq='15d', start=start, end=end) data = np.random.randint(400, 800, times.shape) df = pd.DataFrame(data=data, columns=["var1"], index=times) fig, ax = plt.subplots(figsize=(9, 2)) ax.plot(df['var1'], 'k') ax.set_xlabel('Date') ax.xaxis.set_major_locator(mdates.YearLocator()) ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y')) fig.autofmt_xdate(rotation=45) plt.show() Para hacerlo por meses: import datetime import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates start = pd.Timestamp(2016, 1, 1, 12) end = datetime.datetime(2018, 12, 31, 12, 0, 0) times = pd.date_range(freq='15d', start=start, end=end) data = np.random.randint(400, 800, times.shape) df = pd.DataFrame(data=data, columns=["var1"], index=times) fig, ax = plt.subplots(figsize=(9, 2)) ax.plot(df['var1'], 'k') ax.set_xlabel('Date') ax.xaxis.set_major_locator(mdates.MonthLocator(interval=1)) #to get a tick every 15 minutes ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%b')) fig.autofmt_xdate(rotation=45) plt.show()