From: Michael D. <md...@st...> - 2009-05-18 17:28:47
|
Arcs exist as an optimization to render really large circles and ellipses with high accuracy. An elliptical arc. Because it performs various optimizations, it can not be filled. If you want to draw a filled, yet partial, circle, I believe you want to use Wedge. Cheers, Mike Carlos Guâno Grohmann wrote: > Hello all > > I'm having some troubles with Arcs in MPL. Using the following code: > > circ = Arc( (0,0), width=2, height=2, angle=0.0, > theta1=0.0, theta2=360.0, ec=None, fc=None) > axes.add_patch(circ) > > gives: > > Traceback (most recent call last): > File "pystereo22.py", line 524, in onPlotRose > circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0, > theta2=360.0, ec=None, fc='none') > File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line > 1043, in __init__ > fill = kwargs.pop('fill') > KeyError: 'fill' > > > It's working fine with Circle or Ellipse. I'm trying to use Arc > because I only want a half-circle. > > Thanks all > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |