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

Method __init__

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

Source from the content-addressed store, hash-verified

30
31class HorizontalHatch(HatchPatternBase):
32 def __init__(self, hatch, density):
33 self.num_lines = int((hatch.count('-') + hatch.count('+')) * density)
34 self.num_vertices = self.num_lines * 2
35
36 def set_vertices_and_codes(self, vertices, codes):
37 steps, stepsize = np.linspace(0.0, 1.0, self.num_lines, False,

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected