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:
or:
BoxStyle("Round", pad=0.2)
or:
BoxStyle("Round, pad=0.2")
The following boxstyle classes are defined.
Class Name Attrs Circlecircle
pad=0.3 DArrowdarrow
pad=0.3 LArrowlarrow
pad=0.3 RArrowrarrow
pad=0.3 Roundround
pad=0.3, rounding_size=None Round4round4
pad=0.3, rounding_size=None Roundtoothroundtooth
pad=0.3, tooth_size=None Sawtoothsawtooth
pad=0.3, tooth_size=None Squaresquare
pad=0.3
An instance of any boxstyle class is an callable object, whose call signature is:
__call__(self, x0, y0, width, height, mutation_size, aspect_ratio=1.)
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). mutation_aspect determines the aspect-ratio of the mutation.
Return the instance of the subclass with the given style name.
Circle
(pad=0.3)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A circular box.
Parameters:The amount of padding around the original box.
__init__
(self, pad=0.3)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
DArrow
(pad=0.3)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A box in the shape of a two-way arrow.
Parameters:The amount of padding around the original box.
__init__
(self, pad=0.3)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
LArrow
(pad=0.3)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A box in the shape of a left-pointing arrow.
Parameters:The amount of padding around the original box.
__init__
(self, pad=0.3)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
RArrow
(pad=0.3)[source]¶
Bases: matplotlib.patches.BoxStyle.LArrow
A box in the shape of a right-pointing arrow.
Parameters:The amount of padding around the original box.
__init__
(self, pad=0.3)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
Round
(pad=0.3, rounding_size=None)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A box with round corners.
Parameters:The amount of padding around the original box.
Radius of the corners.
__init__
(self, pad=0.3, rounding_size=None)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
Round4
(pad=0.3, rounding_size=None)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A box with rounded edges.
Parameters:The amount of padding around the original box.
Rounding of edges.
__init__
(self, pad=0.3, rounding_size=None)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
Roundtooth
(pad=0.3, tooth_size=None)[source]¶
Bases: matplotlib.patches.BoxStyle.Sawtooth
A box with a rounded sawtooth outline.
Parameters:The amount of padding around the original box.
Size of the sawtooth.
__init__
(self, pad=0.3, tooth_size=None)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
Sawtooth
(pad=0.3, tooth_size=None)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A box with a sawtooth outline.
Parameters:The amount of padding around the original box.
Size of the sawtooth.
__init__
(self, pad=0.3, tooth_size=None)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
Square
(pad=0.3)[source]¶
Bases: matplotlib.patches.BoxStyle._Base
A square box.
Parameters:The amount of padding around the original box.
__init__
(self, pad=0.3)[source]¶
Initialize self. See help(type(self)) for accurate signature.
__module__
= 'matplotlib.patches'¶
transmute
(self, x0, y0, width, height, mutation_size)[source]¶
Return the Path
outlining the given rectangle.
__module__
= 'matplotlib.patches'¶
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4