matplotlib 3.5.1

BackRef

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 square pad=0.3 Circle circle pad=0.3 LArrow larrow pad=0.3 RArrow rarrow pad=0.3 DArrow darrow pad=0.3 Round round pad=0.3, rounding_size=None Round4 round4 pad=0.3, rounding_size=None Sawtooth sawtooth pad=0.3, tooth_size=None Roundtooth 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).

BoxStyle is a container class which defines several boxstyle classes, which are used for FancyBboxPatch .

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.patches.FancyBboxPatch matplotlib.patches.ArrowStyle matplotlib.patches.FancyBboxPatch.__init__ matplotlib.patches.BoxStyle

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/patches.py#2201
type: <class 'type'>
Commit: