MCPcopy
hub / github.com/matplotlib/matplotlib / subplots

Function subplots

lib/matplotlib/pyplot.py:1678–1691  ·  view source on GitHub ↗
(
    nrows: Literal[1] = ...,
    ncols: Literal[1] = ...,
    *,
    sharex: bool | Literal["none", "all", "row", "col"] = ...,
    sharey: bool | Literal["none", "all", "row", "col"] = ...,
    squeeze: Literal[True] = ...,
    width_ratios: Sequence[float] | None = ...,
    height_ratios: Sequence[float] | None = ...,
    subplot_kw: dict[str, Any] | None = ...,
    gridspec_kw: dict[str, Any] | None = ...,
    **fig_kw: Any
)

Source from the content-addressed store, hash-verified

1676
1677@overload
1678def subplots(
1679 nrows: Literal[1] = ...,
1680 ncols: Literal[1] = ...,
1681 *,
1682 sharex: bool | Literal["none", "all", "row", "col"] = ...,
1683 sharey: bool | Literal["none", "all", "row", "col"] = ...,
1684 squeeze: Literal[True] = ...,
1685 width_ratios: Sequence[float] | None = ...,
1686 height_ratios: Sequence[float] | None = ...,
1687 subplot_kw: dict[str, Any] | None = ...,
1688 gridspec_kw: dict[str, Any] | None = ...,
1689 **fig_kw: Any
1690) -> tuple[Figure, Axes]:
1691 ...
1692
1693
1694@overload

Callers

nothing calls this directly

Calls 4

_raise_if_figure_existsFunction · 0.85
figureFunction · 0.85
getMethod · 0.45
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…