def set_axis_font_size(axis, font_size):
    """ Set the font size of the title, axis labels and tick labels. """
    for item in ([axis.title, axis.xaxis.label, axis.yaxis.label] + axis.
        get_xticklabels() + axis.get_yticklabels()):
        item.set_fontsize(font_size)
