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

Method __call__

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

Source from the content-addressed store, hash-verified

2551 self.pad = pad
2552
2553 def __call__(self, x0, y0, width, height, mutation_size):
2554 pad = mutation_size * self.pad
2555 width, height = width + 2 * pad, height + 2 * pad
2556 # boundary of the padded box
2557 x0, y0 = x0 - pad, y0 - pad
2558 return Path.circle((x0 + width / 2, y0 + height / 2),
2559 max(width, height) / 2)
2560
2561 @_register_style(_style_list)
2562 class Ellipse:

Callers

nothing calls this directly

Calls 1

circleMethod · 0.80

Tested by

no test coverage detected