def add_ticks_to_x(ax, newticks, newnames):
ticks = list(ax.get_xticks())<EOL>ticks.extend(newticks)<EOL>ax.set_xticks(ticks)<EOL>names = list(ax.get_xticklabels())<EOL>names.extend(newnames)<EOL>ax.set_xticklabels(names)<EOL>
Add new ticks to an axis.

    I use this for the right-hand plotting of resonance names in my plots.