MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / violinplot

Function violinplot

lib/matplotlib/pyplot.py:4474–4510  ·  view source on GitHub ↗
(
    dataset: ArrayLike | Sequence[ArrayLike],
    positions: ArrayLike | None = None,
    vert: bool | None = None,
    orientation: Literal["vertical", "horizontal"] = "vertical",
    widths: float | ArrayLike = 0.5,
    showmeans: bool = False,
    showextrema: bool = True,
    showmedians: bool = False,
    quantiles: Sequence[float | Sequence[float]] | None = None,
    points: int = 100,
    bw_method: (
        Literal["scott", "silverman"] | float | Callable[[GaussianKDE], float] | None
    ) = None,
    side: Literal["both", "low", "high"] = "both",
    facecolor: Sequence[ColorType] | ColorType | None = None,
    linecolor: Sequence[ColorType] | ColorType | None = None,
    *,
    data: DataParamType = None,
)

Source from the content-addressed store, hash-verified

4472# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
4473@_copy_docstring_and_deprecators(Axes.violinplot)
4474def violinplot(
4475 dataset: ArrayLike | Sequence[ArrayLike],
4476 positions: ArrayLike | None = None,
4477 vert: bool | None = None,
4478 orientation: Literal["vertical", "horizontal"] = "vertical",
4479 widths: float | ArrayLike = 0.5,
4480 showmeans: bool = False,
4481 showextrema: bool = True,
4482 showmedians: bool = False,
4483 quantiles: Sequence[float | Sequence[float]] | None = None,
4484 points: int = 100,
4485 bw_method: (
4486 Literal["scott", "silverman"] | float | Callable[[GaussianKDE], float] | None
4487 ) = None,
4488 side: Literal["both", "low", "high"] = "both",
4489 facecolor: Sequence[ColorType] | ColorType | None = None,
4490 linecolor: Sequence[ColorType] | ColorType | None = None,
4491 *,
4492 data: DataParamType = None,
4493) -> dict[str, Collection]:
4494 return gca().violinplot(
4495 dataset,
4496 positions=positions,
4497 vert=vert,
4498 orientation=orientation,
4499 widths=widths,
4500 showmeans=showmeans,
4501 showextrema=showextrema,
4502 showmedians=showmedians,
4503 quantiles=quantiles,
4504 points=points,
4505 bw_method=bw_method,
4506 side=side,
4507 facecolor=facecolor,
4508 linecolor=linecolor,
4509 **({"data": data} if data is not None else {}),
4510 )
4511
4512
4513# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
violinplotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…