Enums representing sets of strings that Matplotlib uses as input parameters.
Matplotlib often uses simple data types like strings or tuples to define a
concept; e.g. the line capstyle can be specified as one of 'butt', 'round',
or 'projecting'. The classes in this module are used internally and serve to
document these concepts formally.
As an end-user you will not use these classes directly, but only the values
they define.
classmatplotlib._enums.JoinStyle(*values)
Define how the connection between two line segments is drawn.
Lines in Matplotlib are typically defined by a 1D Path and a
finite linewidth, where the underlying 1D Path represents the
center of the stroked line.
By default, GraphicsContextBase defines the boundaries of
a stroked line to simply be every point within some radius,
linewidth/2, away from any point of the center line. However, this
results in corners appearing "rounded", which may not be the desired
behavior if you are drawing, for example, a polygon or pointed star.
Supported values:
'miter'
the "arrow-tip" style. Each boundary of the filled-in area will
extend in a straight line parallel to the tangent vector of the
centerline at the point it meets the corner, until they meet in a
sharp point.
'round'
stokes every point within a radius of linewidth/2 of the center
lines.
'bevel'
the "squared-off" style. It can be thought of as a rounded corner
where the "circular" part of the corner has been cut off.
Demonstrate how each JoinStyle looks for various join angles.
classmatplotlib._enums.CapStyle(*values)
Define how the two endpoints (caps) of an unclosed line are drawn.
How to draw the start and end points of lines that represent a closed curve
(i.e. that end in a CLOSEPOLY) is controlled by the line's
JoinStyle. For all other lines, how the start and end points are drawn is
controlled by the CapStyle.