1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-25 18:52:28 +00:00
gists/repos/e654835d4263378a3ac8/customlabels.py

5 lines
164 B
Python
Raw Normal View History

2015-11-08 18:19:35 +00:00
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
red_patch = mpatches.Patch(color='red', label='The red data')
plt.legend(handles=[red_patch])