matplotlib.hatch#

Contains classes for generating hatch patterns.

classmatplotlib.hatch.Circles(hatch,density)[source]#

Bases:Shapes

classmatplotlib.hatch.HatchPatternBase[source]#

Bases:object

The base class for a hatch pattern.

classmatplotlib.hatch.HorizontalHatch(hatch,density)[source]#

Bases:HatchPatternBase

set_vertices_and_codes(vertices,codes)[source]#
classmatplotlib.hatch.LargeCircles(hatch,density)[source]#

Bases:Circles

size=0.35#
classmatplotlib.hatch.NorthEastHatch(hatch,density)[source]#

Bases:HatchPatternBase

set_vertices_and_codes(vertices,codes)[source]#
classmatplotlib.hatch.Shapes(hatch,density)[source]#

Bases:HatchPatternBase

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

Bases:Circles

size=0.2#
classmatplotlib.hatch.SmallFilledCircles(hatch,density)[source]#

Bases:Circles

filled=True#
size=0.1#
classmatplotlib.hatch.SouthEastHatch(hatch,density)[source]#

Bases:HatchPatternBase

set_vertices_and_codes(vertices,codes)[source]#
classmatplotlib.hatch.Stars(hatch,density)[source]#

Bases:Shapes

filled=True#
size=0.3333333333333333#
classmatplotlib.hatch.VerticalHatch(hatch,density)[source]#

Bases:HatchPatternBase

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

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