matplotlib.patches.FancyBboxPatch(xy, width, height, boxstyle='round', bbox_transmuter=None, mutation_scale=1.0, mutation_aspect=None, **kwargs)[source]¶Bases: matplotlib.patches.Patch
A fancy box around a rectangle with lower left at xy = (x, y) with specified width and height.
FancyBboxPatch is similar to Rectangle, but it draws a fancy box
around the rectangle. The transformation of the rectangle box to the
fancy box is delegated to the BoxTransmuterBase and its derived classes.
| Parameters: | xy : float, float
width : float
height : float
boxstyle : str or
mutation_scale : float, optional, default: 1
mutation_aspect : float, optional
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Other Parameters: | **kwargs :
|
set_bounds(*args)[source]¶Set the bounds of the rectangle.
Call signatures:
set_bounds(left, bottom, width, height)
set_bounds((left, bottom, width, height))
| Parameters: | left, bottom : float
width, height : float
|
|---|
set_boxstyle(boxstyle=None, **kw)[source]¶Set the box style.
boxstyle can be a string with boxstyle name with optional comma-separated attributes. Alternatively, the attrs can be provided as keywords:
set_boxstyle("round,pad=0.2")
set_boxstyle("round", pad=0.2)
Old attrs simply are forgotten.
Without argument (or with boxstyle = None), it returns available box styles.
The following boxstyles are available:
Class Name Attrs Circle circlepad=0.3 DArrow darrowpad=0.3 LArrow larrowpad=0.3 RArrow rarrowpad=0.3 Round roundpad=0.3, rounding_size=None Round4 round4pad=0.3, rounding_size=None Roundtooth roundtoothpad=0.3, tooth_size=None Sawtooth sawtoothpad=0.3, tooth_size=None Square squarepad=0.3
ACCEPTS: [ 'circle' | 'darrow' | 'larrow' | 'rarrow' | 'round' | 'round4' | 'roundtooth' | 'sawtooth' | 'square' ]
matplotlib.patches.FancyBboxPatch¶