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

Method __call__

lib/matplotlib/patches.py:2971–2988  ·  view source on GitHub ↗

Call the *connect* method to create a path between *posA* and *posB*; then clip and shrink the path.

(self, posA, posB,
                     shrinkA=2., shrinkB=2., patchA=None, patchB=None)

Source from the content-addressed store, hash-verified

2969 return path
2970
2971 def __call__(self, posA, posB,
2972 shrinkA=2., shrinkB=2., patchA=None, patchB=None):
2973 """
2974 Call the *connect* method to create a path between *posA* and
2975 *posB*; then clip and shrink the path.
2976 """
2977 path = self.connect(posA, posB)
2978 path = self._clip(
2979 path,
2980 self._in_patch(patchA) if patchA else None,
2981 self._in_patch(patchB) if patchB else None,
2982 )
2983 path = self._clip(
2984 path,
2985 inside_circle(*path.vertices[0], shrinkA) if shrinkA else None,
2986 inside_circle(*path.vertices[-1], shrinkB) if shrinkB else None
2987 )
2988 return path
2989
2990 @_register_style(_style_list)
2991 class Arc3(_Base):

Callers

nothing calls this directly

Calls 4

_clipMethod · 0.95
_in_patchMethod · 0.95
inside_circleFunction · 0.85
connectMethod · 0.45

Tested by

no test coverage detected