On Mon, Oct 17, 2011 at 10:42 PM, pratik <pratik.mallya...@gmail.com> 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,
>
>
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
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users