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

Method _set_plus_filled

lib/matplotlib/markers.py:874–886  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

872 (-1, +3), (-1, +1), (-3, +1), (-3, 0)]) / 6)
873
874 def _set_plus_filled(self):
875 self._transform = Affine2D()
876 self._snap_threshold = 5.0
877 self._joinstyle = self._user_joinstyle or JoinStyle.miter
878 if not self._half_fill():
879 self._path = self._plus_filled_path
880 else:
881 # Rotate top half path to support all partitions
882 self._path = self._alt_path = self._plus_filled_path_t
883 fs = self.get_fillstyle()
884 self._transform.rotate_deg(
885 {'top': 0, 'left': 90, 'bottom': 180, 'right': 270}[fs])
886 self._alt_transform = self._transform.frozen().rotate_deg(180)
887
888 _x_filled_path = Path._create_closed(np.array([
889 (-1, -2), (0, -1), (+1, -2), (+2, -1), (+1, 0), (+2, +1),

Callers

nothing calls this directly

Calls 5

_half_fillMethod · 0.95
get_fillstyleMethod · 0.95
Affine2DClass · 0.85
rotate_degMethod · 0.80
frozenMethod · 0.45

Tested by

no test coverage detected