MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / wedge

Method wedge

lib/matplotlib/path.py:1064–1079  ·  view source on GitHub ↗

Return a `Path` for the unit circle wedge from angles *theta1* to *theta2* (in degrees). *theta2* is unwrapped to produce the shortest wedge within 360 degrees. That is, if *theta2* > *theta1* + 360, the wedge will be from *theta1* to *theta2* - 360 and not

(cls, theta1, theta2, n=None)

Source from the content-addressed store, hash-verified

1062
1063 @classmethod
1064 def wedge(cls, theta1, theta2, n=None):
1065 """
1066 Return a `Path` for the unit circle wedge from angles *theta1* to
1067 *theta2* (in degrees).
1068
1069 *theta2* is unwrapped to produce the shortest wedge within 360 degrees.
1070 That is, if *theta2* > *theta1* + 360, the wedge will be from *theta1*
1071 to *theta2* - 360 and not a full circle plus some extra overlap.
1072
1073 If *n* is provided, it is the number of spline segments to make.
1074 If *n* is not provided, the number of spline segments is
1075 determined based on the delta between *theta1* and *theta2*.
1076
1077 See `Path.arc` for the reference on the approximation used.
1078 """
1079 return cls.arc(theta1, theta2, n, True)
1080
1081 @staticmethod
1082 @lru_cache(8)

Callers

nothing calls this directly

Calls 1

arcMethod · 0.80

Tested by

no test coverage detected