Hello, 

this seems like it should be easy but I am beating my head on the wall here.

I am trying to fill in everything rad<=1 in a polar plot (this is a spacecraft 
orbit trace and the circle is the Earth) and can't seem to get it.

from pylab import *
from matplotlib.patches import Circle
fig=figure()
ax = fig.add_subplot(111, polar=True)
ax.plot([2,2,2,2], [2,3,4,5])
el = Circle((0,0), radius=1,facecolor='black', axes=ax)
ax.add_artist(el)
draw()
# also get the same result plotting with polar()

and of course this dumbell looks nothing like the earth :)

thanks much for any help,  

Brian



-- 
-----------------------------------------------------------
Brian A Larsen, PhD
RBSP-ECT Instrument Suite Scientist

Boston University
Center for Space Physics
725 Commonwealth Ave, Rm 506
Boston, MA 02215-1401
T: 617-358-4945
F: 617-353-6463
balar...@bu.edu 




------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to