Is there a function that can draw an ellipsoid like matlab's ellipsoid
function?
relevant:
http://stackoverflow.com/questions/2153768/draw-ellipse-and-ellipsoid-in-matlab
Thanks,
Is there a function that can draw an ellipsoid like matlab's ellipsoid
function?
relevant:
http://stackoverflow.com/questions/2153768/draw-ellipse-and-ellipsoid-in-matlab
Thanks,
from matplotlib.patches import Ellipse
import matplotlib.pyplot as plt
x = 0.5
y = 0.5
a = 4
b = 1
theta = 45.0
ell = Ellipse((x, y), a, b, theta)
ax = plt.gca()
ax.add_artist(ell)
plt.show()
There are some additional kwargs to the Ellipse constructor that allows you to control color and such.
I hope that helps!
Ben Root
On Mon, Oct 17, 2011 at 10:42 PM, pratik <pratik.mallya.ml@…287…> wrote:
Is there a function that can draw an ellipsoid like matlab’s ellipsoid
function?
relevant:
http://stackoverflow.com/questions/2153768/draw-ellipse-and-ellipsoid-in-matlab
Thanks,