mirror of
https://github.com/balkian/gists.git
synced 2024-11-24 10:22:28 +00:00
5 lines
164 B
Python
5 lines
164 B
Python
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]) |