for label in pyplot.gca().get_ymajorticklabels(): label.set_color(getColorFromName[label.get_text()])