Add shapes to matplotlib figures with matplotlib patches || Matplotlib Tips

preview_player
Показать описание
Learn how to add shapes with the matplotlib patches module in this Matplotlib Tips video. I demo how to import the Rectangle class from matplotlib patches and how to set the rectangles location, height, and width. I add the rectangle to the figure and show you how to turn off the matplotlib rectangle fill and change the angle. I also show you how to add a circle patch to your matplotlib figures. I talk about the applications of adding shapes, and I also mention other matplotlib patches: the ellipse and regular polygon.

0:00 Introduction - Dolphins!
0:32 Add a Rectangle
2:03 Add a Circle
3:07 Applications
3:30 More Shapes & Styles
3:55 Conclusion

Github Code:

Additional Resources:

Related Videos:

#matplotlibtips #matplotlib #dataviz
Рекомендации по теме
Комментарии
Автор

You are doing the Lord's work here.

thelearninglab
Автор

Nice, thanks Kim, I'm wondering if I can attach other shapes not listed in documentation? thanks again!

golparijoon
Автор

Great video! Kimberly I have a question:

How do you discover the default values of each objects property?

BrunoAraujo-polm
Автор

If you could make a tutorial on dendrograms, that would be great!

t.t.cooperphd
Автор

Can we figure out the scattered points inside patch

sanjivraj
welcome to shbcf.ru