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

Method __call__

lib/matplotlib/patches.py:2530–2538  ·  view source on GitHub ↗
(self, x0, y0, width, height, mutation_size)

Source from the content-addressed store, hash-verified

2528 self.pad = pad
2529
2530 def __call__(self, x0, y0, width, height, mutation_size):
2531 pad = mutation_size * self.pad
2532 # width and height with padding added.
2533 width, height = width + 2 * pad, height + 2 * pad
2534 # boundary of the padded box
2535 x0, y0 = x0 - pad, y0 - pad
2536 x1, y1 = x0 + width, y0 + height
2537 return Path._create_closed(
2538 [(x0, y0), (x1, y0), (x1, y1), (x0, y1)])
2539
2540 @_register_style(_style_list)
2541 class Circle:

Callers

nothing calls this directly

Calls 1

_create_closedMethod · 0.80

Tested by

no test coverage detected