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

Method __init__

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

Source from the content-addressed store, hash-verified

47
48class VerticalHatch(HatchPatternBase):
49 def __init__(self, hatch, density):
50 self.num_lines = int((hatch.count('|') + hatch.count('+')) * density)
51 self.num_vertices = self.num_lines * 2
52
53 def set_vertices_and_codes(self, vertices, codes):
54 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