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

Method __init__

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

Source from the content-addressed store, hash-verified

83
84class SouthEastHatch(HatchPatternBase):
85 def __init__(self, hatch, density):
86 self.num_lines = int(
87 (hatch.count('\\') + hatch.count('x') + hatch.count('X'))
88 * density)
89 if self.num_lines:
90 self.num_vertices = (self.num_lines + 1) * 2
91 else:
92 self.num_vertices = 0
93
94 def set_vertices_and_codes(self, vertices, codes):
95 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