def percent_ylabel(): plt.gca().set_yticklabels(['%d%%' % (x * 100) for x in plt.gca().get_yticks()])