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

Method __init__

lib/matplotlib/hatch.py:178–186  ·  view source on GitHub ↗
(self, hatch, density)

Source from the content-addressed store, hash-verified

176 filled = True
177
178 def __init__(self, hatch, density):
179 self.num_rows = (hatch.count('*')) * density
180 path = Path.unit_regular_star(5)
181 self.shape_vertices = path.vertices
182 self.shape_codes = np.full(len(self.shape_vertices), Path.LINETO,
183 dtype=Path.code_type)
184 self.shape_codes[0] = Path.MOVETO
185 self.shape_codes[-1] = Path.CLOSEPOLY
186 super().__init__(hatch, density)
187
188_hatch_types = [
189 HorizontalHatch,

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

countMethod · 0.80
unit_regular_starMethod · 0.80

Tested by

no test coverage detected