def axis_labels(x, y, axlabelfontsize=None, axlabelfontname=None): plt.xlabel(x, fontsize=axlabelfontsize, fontname=axlabelfontname) plt.ylabel(y, fontsize=axlabelfontsize, fontname=axlabelfontname) # plt.xticks(fontsize=9, fontname="sans-serif") # plt.yticks(fontsize=9, fontname="sans-serif")