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

Method _set_circle

lib/matplotlib/markers.py:510–520  ·  view source on GitHub ↗
(self, size=1.0)

Source from the content-addressed store, hash-verified

508 return self.get_fillstyle() in self._half_fillstyles
509
510 def _set_circle(self, size=1.0):
511 self._transform = Affine2D().scale(0.5 * size)
512 self._snap_threshold = np.inf
513 if not self._half_fill():
514 self._path = Path.unit_circle()
515 else:
516 self._path = self._alt_path = Path.unit_circle_righthalf()
517 fs = self.get_fillstyle()
518 self._transform.rotate_deg(
519 {'right': 0, 'top': 90, 'left': 180, 'bottom': 270}[fs])
520 self._alt_transform = self._transform.frozen().rotate_deg(180.)
521
522 def _set_point(self):
523 self._set_circle(size=0.5)

Callers 1

_set_pointMethod · 0.95

Calls 8

_half_fillMethod · 0.95
get_fillstyleMethod · 0.95
Affine2DClass · 0.85
unit_circleMethod · 0.80
unit_circle_righthalfMethod · 0.80
rotate_degMethod · 0.80
scaleMethod · 0.45
frozenMethod · 0.45

Tested by

no test coverage detected