matplotlib.hatch

Contains classes for generating hatch patterns.

class matplotlib.hatch.Circles(hatch, density)[source]

Bases: matplotlib.hatch.Shapes

class matplotlib.hatch.HatchPatternBase[source]

Bases: object

The base class for a hatch pattern.

class matplotlib.hatch.HorizontalHatch(hatch, density)[source]

Bases: matplotlib.hatch.HatchPatternBase

set_vertices_and_codes(vertices, codes)[source]
class matplotlib.hatch.LargeCircles(hatch, density)[source]

Bases: matplotlib.hatch.Circles

size = 0.35
class matplotlib.hatch.NorthEastHatch(hatch, density)[source]

Bases: matplotlib.hatch.HatchPatternBase

set_vertices_and_codes(vertices, codes)[source]
class matplotlib.hatch.Shapes(hatch, density)[source]

Bases: matplotlib.hatch.HatchPatternBase

filled = False
set_vertices_and_codes(vertices, codes)[source]
class matplotlib.hatch.SmallCircles(hatch, density)[source]

Bases: matplotlib.hatch.Circles

size = 0.2
class matplotlib.hatch.SmallFilledCircles(hatch, density)[source]

Bases: matplotlib.hatch.Circles

filled = True
size = 0.1
class matplotlib.hatch.SouthEastHatch(hatch, density)[source]

Bases: matplotlib.hatch.HatchPatternBase

set_vertices_and_codes(vertices, codes)[source]
class matplotlib.hatch.Stars(hatch, density)[source]

Bases: matplotlib.hatch.Shapes

filled = True
size = 0.3333333333333333
class matplotlib.hatch.VerticalHatch(hatch, density)[source]

Bases: matplotlib.hatch.HatchPatternBase

set_vertices_and_codes(vertices, codes)[source]
matplotlib.hatch.get_path(hatchpattern, density=6)[source]

Given a hatch specifier, hatchpattern, generates Path to render the hatch in a unit square. density is the number of lines per unit square.