mirror of
https://github.com/balkian/gists.git
synced 2024-11-23 01:52:27 +00:00
d6baea1a6c
git-subtree-dir: repos/e654835d4263378a3ac8 git-subtree-mainline:710c067e29
git-subtree-split:04eaafc293
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]) |