matplotlib 3.5.1

Other ParametersParameters
__init__(self, parent, subplotspec, *, facecolor=None, edgecolor=None, linewidth=0.0, frameon=None, **kwargs)

Other Parameters

**kwargs : `.SubFigure` properties, optional

Properties: agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha: scalar or None animated: bool clip_box: .Bbox clip_on: bool clip_path: Patch or (Path, Transform) or None edgecolor: color facecolor: color figure: .Figure frameon: bool gid: str in_layout: bool label: object linewidth: number path_effects: .AbstractPathEffect picker: None or bool or float or callable rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None transform: .Transform url: str visible: bool zorder: float

Parameters

parent : `.figure.Figure` or `.figure.SubFigure`

Figure or subfigure that contains the SubFigure. SubFigures can be nested.

subplotspec : `.gridspec.SubplotSpec`

Defines the region in a parent gridspec where the subfigure will be placed.

facecolor : default: :rc:`figure.facecolor`

The figure patch face color.

edgecolor : default: :rc:`figure.edgecolor`

The figure patch edge color.

linewidth : float

The linewidth of the frame (i.e. the edge linewidth of the figure patch).

frameon : bool, default: :rc:`figure.frameon`

If False , suppress drawing the figure background patch.

Examples

See :

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/figure.py#1954
type: <class 'function'>
Commit: