matplotlib.patches.BoxStyle
- class matplotlib.patches.BoxStyle(stylename, **kwargs)
Bases:
_StyleBoxStyleis a container class which defines several boxstyle classes, which are used for.
Bases: _Style
BoxStyle is a container class which defines several
boxstyle classes, which are used for .
A style object can be created as:
BoxStyle.Round(pad=0.2)
or:
BoxStyle("Round", pad=0.2)
or:
BoxStyle("Round, pad=0.2")
The following boxstyle classes are defined.
Class
Name
Parameters
Square
squarepad=0.3
Circle
circlepad=0.3
Ellipse
ellipsepad=0.3
RArrow
rarrowpad=0.3, head_width=1.5, head_angle=90
LArrow
larrowpad=0.3, head_width=1.5, head_angle=90
DArrow
darrowpad=0.3, head_width=1.5, head_angle=90
Round
roundpad=0.3, rounding_size=None
Round4
round4pad=0.3, rounding_size=None
Sawtooth
sawtoothpad=0.3, tooth_size=None
Roundtooth
roundtoothpad=0.3, tooth_size=None
An instance of a boxstyle class is a callable object, with the signature
__call__(self, x0, y0, width, height, mutation_size) -> Path
x0, y0, width and height specify the location and size of the box to be drawn; mutation_size scales the outline properties such as padding.
Return the instance of the subclass with the given style name.
Bases: object
A circular box.
The amount of padding around the original box.
Call self as a function.
Bases: RArrow
A box in the shape of a two-way arrow.
The amount of padding around the original box.
The head width, relative to the arrow shaft width; must be nonnegative.
The angle at the tip of the arrow, in degrees; must be nonzero (modulo 360). Negative angles result in arrow heads pointing backwards.
Call self as a function.
Bases: object
An elliptical box.
The amount of padding around the original box.
Call self as a function.
Bases: RArrow
A box in the shape of a left-pointing arrow.
The amount of padding around the original box.
The head width, relative to the arrow shaft width; must be nonnegative.
The angle at the tip of the arrow, in degrees; must be nonzero (modulo 360). Negative angles result in arrow heads pointing backwards.
Call self as a function.
Bases: object
A box in the shape of a right-pointing arrow.
The amount of padding around the original box.
The head width, relative to the arrow shaft width; must be nonnegative.
The angle at the tip of the arrow, in degrees; must be nonzero (modulo 360). Negative angles result in arrow heads pointing backwards.
Call self as a function.
Bases: object
A box with round corners.
The amount of padding around the original box.
Radius of the corners.
Call self as a function.
Bases: object
A box with rounded edges.
The amount of padding around the original box.
Rounding of edges.
Call self as a function.
Bases: Sawtooth
A box with a rounded sawtooth outline.
The amount of padding around the original box.
Size of the sawtooth.
Call self as a function.
Bases: object
A box with a sawtooth outline.
The amount of padding around the original box.
Size of the sawtooth.
Call self as a function.
Bases: object
A square box.
The amount of padding around the original box.
Call self as a function.
matplotlib.patches.BoxStyle