def __init__(self, center, r, theta1, theta2, width=None, **kwargs):
Patch.__init__(self, **kwargs)<EOL>self.center = center<EOL>self.r,self.width = r,width<EOL>self.theta1,self.theta2 = theta1,theta2<EOL>delta=theta2-theta1<EOL>if abs((theta2-theta1) - <NUM_LIT>) <= <NUM_LIT>:<EOL><INDENT>theta1,theta2 = <NUM_LIT:0>,<NUM_LIT><EOL>connector = Path.MOVETO<EOL><DEDENT>else:<EOL><INDENT>connector = Path.LINETO<EOL><DEDENT>arc = Path.arc(theta1,theta2)<EOL>if width is not None:<EOL><INDENT>v1 = arc.vertices<EOL>v2 = arc.vertices[::-<NUM_LIT:1>]*float(r-width)/r<EOL>v = np.vstack([v1,v2,v1[<NUM_LIT:0>,:],(<NUM_LIT:0>,<NUM_LIT:0>)])<EOL>c = np.hstack([arc.codes,arc.codes,connector,Path.CLOSEPOLY])<EOL>c[len(arc.codes)]=connector<EOL><DEDENT>else:<EOL><INDENT>v = np.vstack([arc.vertices,[(<NUM_LIT:0>,<NUM_LIT:0>),arc.vertices[<NUM_LIT:0>,:],(<NUM_LIT:0>,<NUM_LIT:0>)]])<EOL>c = np.hstack([arc.codes,[connector,connector,Path.CLOSEPOLY]])<EOL><DEDENT>v *= r<EOL>v += np.asarray(center)<EOL>self._path = Path(v,c)<EOL>self._patch_transform = transforms.IdentityTransform()<EOL>
Draw a wedge centered at *x*, *y* center with radius *r* that
sweeps *theta1* to *theta2* (in degrees).  If *width* is given,
then a partial wedge is drawn from inner radius *r* - *width*
to outer radius *r*.

Valid kwargs are:

%(Patch)s