Bases: matplotlib.patches._Style
BoxStyle
is a container class which defines several boxstyle classes, which are used for FancyBboxPatch
.
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 | Attrs |
---|---|---|
Square |
| pad=0.3 |
Circle |
| pad=0.3 |
LArrow |
| pad=0.3 |
RArrow |
| pad=0.3 |
DArrow |
| pad=0.3 |
Round |
| pad=0.3, rounding_size=None |
Round4 |
| pad=0.3, rounding_size=None |
Sawtooth |
| pad=0.3, tooth_size=None |
Roundtooth |
| pad=0.3, tooth_size=None |
An instance of any boxstyle class is an callable object, whose call signature is:
__call__(self, x0, y0, width, height, mutation_size)
and returns a Path
instance. x0, y0, width and height specify the location and size of the box to be drawn. mutation_scale determines the overall size of the mutation (by which I mean the transformation of the rectangle to the fancy box).
Return the instance of the subclass with the given style name.
Bases: matplotlib.patches.BoxStyle._Base
A circular box.
The amount of padding around the original box.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A box in the shape of a two-way arrow.
The amount of padding around the original box.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A box in the shape of a left-pointing arrow.
The amount of padding around the original box.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle.LArrow
A box in the shape of a right-pointing arrow.
The amount of padding around the original box.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A box with round corners.
The amount of padding around the original box.
Radius of the corners.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A box with rounded edges.
The amount of padding around the original box.
Rounding of edges.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle.Sawtooth
A box with a rounded sawtooth outline.
The amount of padding around the original box.
Size of the sawtooth.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A box with a sawtooth outline.
The amount of padding around the original box.
Size of the sawtooth.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
Bases: matplotlib.patches.BoxStyle._Base
A square box.
The amount of padding around the original box.
Given the location and size of the box, return the path of the box around it.
Location and size of the box.
A reference scale for the mutation.
matplotlib.patches.BoxStyle
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.patches.BoxStyle.html