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

Method __init__

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

Source from the content-addressed store, hash-verified

64
65class NorthEastHatch(HatchPatternBase):
66 def __init__(self, hatch, density):
67 self.num_lines = int(
68 (hatch.count('/') + hatch.count('x') + hatch.count('X')) * density)
69 if self.num_lines:
70 self.num_vertices = (self.num_lines + 1) * 2
71 else:
72 self.num_vertices = 0
73
74 def set_vertices_and_codes(self, vertices, codes):
75 steps = np.linspace(-0.5, 0.5, self.num_lines + 1)

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected