| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../toolkits/../_as_gen/matplotlib.patches.BoxStyle.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.patchesBases: _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
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.
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.
Bases: object
An elliptical box.
Added in version 3.7.
The amount of padding around the original box.
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.
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.
Bases: object
A box with round corners.
The amount of padding around the original box.
Radius of the corners.
Bases: object
A box with rounded edges.
The amount of padding around the original box.
Rounding of edges.
Bases: Sawtooth
A box with a rounded sawtooth outline.
The amount of padding around the original box.
Size of the sawtooth.
matplotlib.patches.BoxStyle#
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |