使用matplotlib.pyplot(Python)绘制椭圆 [英] Plot Ellipse with matplotlib.pyplot (Python)
问题描述
很抱歉,如果这是一个愚蠢的问题,但是有没有一种简单的方法可以在Python中使用matplotlib.pyplot绘制椭圆?我希望会有类似于matplotlib.pyplot.arrow的东西,但我找不到任何东西.
Sorry if this is a stupid question, but is there an easy way to plot an ellipse with matplotlib.pyplot in Python? I was hoping there would be something similar to matplotlib.pyplot.arrow, but I can't find anything.
使用matplotlib.patches和draw_artist或类似的东西是唯一的方法吗?我希望有一个更简单的方法,但是文档不会提供太多帮助.
Is the only way to do it using matplotlib.patches with draw_artist or something similar? I would hope that there is a simpler method, but the documentation doesn't offer much help.
感谢您的任何建议!
推荐答案
您是否看到过 matplotlib椭圆演示?在这里,他们使用 matplotlib.patches.Ellipse
.
Have you seen the matplotlib ellipse demo? Here they use matplotlib.patches.Ellipse
.
这篇关于使用matplotlib.pyplot(Python)绘制椭圆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!