Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- from mod_patch import get_Patch
- fig, ax = plt.subplots(figsize=(8,8))
- c = get_Patch(plt.Circle, (0,0.5), 0.5, facecolor='green', edgecolor='orange', alpha=0.5, lw=15)
- ax.add_artist(c)
- r = get_Patch(plt.Rectangle, (0.5,0), 0.5, 0.5, facecolor='green', edgecolor='orange', alpha=0.5, lw=15)
- ax.add_artist(r)
- plt.show()
Add Comment
Please, Sign In to add comment