I'm trying to make a plot similar to this excel example:
I would like to know if there is anyways to have a second layer on the x tick labels (e.g. "5 Year Statistical Summary"). I know I can make multi-line tick labels using \n
but I want to be able to shift the two levels independently.
The best solution I've found is to use the
plt.annotate
function. It's described well here: in the last comment