The solution notebook, cell 15, uses this line to set the xticklabels:
ax1.set_xticklabels(['', '2001', '', '2003', '', '2005', '',
'2007', '', '2009']
There must be a better way to do this than typing the ticklabels manually.
Also, how can I get the current xtick locations in this example?
Click here to open the screen in a new tab.