Matplotlib: text color code in the legend instead of a line,plt.show()