`); Plot typesUser guideTutorialsExamplesReferenceContributeReleases GitterGitter DiscourseDiscourse GitHubGitHubPlot typesUser guideTutorialsExamplesReferenceContributeReleases GitterGitter DiscourseDiscourse GitHubGitHubSection NavigationPairwise dataplot(x, y)scatter(x, y)bar(x, height)stem(x, y)fill_between(x, y1, y2)stackplot(x, y)stairs(values)Statistical distributionshist(x)boxplot(X)errorbar(x, y, yerr, xerr)vio..." />`); Plot typesUser guideTutorialsExamplesReferenceContributeReleases GitterGitter DiscourseDiscourse GitHubGitHubPlot typesUser guideTutorialsExamplesReferenceContributeReleases GitterGitter DiscourseDiscourse GitHubGitHubSection NavigationPairwise dataplot(x, y)scatter(x, y)bar(x, height)stem(x, y)fill_between(x, y1, y2)stackplot(x, y)stairs(values)Statistical distributionshist(x)boxplot(X)errorbar(x, y, yerr, xerr)vio..." /> Statistical distributions — Matplotlib 3.11.0.dev805+gde00c493a7 documentation
Skip to main content
Ctrl+K
Matplotlib 3.11.0.dev805+gde00c493a7 documentation - Home
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub

Section Navigation

  • Pairwise data
    • plot(x, y)
    • scatter(x, y)
    • bar(x, height)
    • stem(x, y)
    • fill_between(x, y1, y2)
    • stackplot(x, y)
    • stairs(values)
  • Statistical distributions
    • hist(x)
    • boxplot(X)
    • errorbar(x, y, yerr, xerr)
    • violinplot(D)
    • eventplot(D)
    • hist2d(x, y)
    • hexbin(x, y, C)
    • pie(x)
    • ecdf(x)
  • Gridded data
    • imshow(Z)
    • pcolormesh(X, Y, Z)
    • contour(X, Y, Z)
    • contourf(X, Y, Z)
    • barbs(X, Y, U, V)
    • quiver(X, Y, U, V)
    • streamplot(X, Y, U, V)
  • Irregularly gridded data
    • tricontour(x, y, z)
    • tricontourf(x, y, z)
    • tripcolor(x, y, z)
    • triplot(x, y)
  • 3D and volumetric data
    • bar3d(x, y, z, dx, dy, dz)
    • fill_between(x1, y1, z1, x2, y2, z2)
    • plot(xs, ys, zs)
    • quiver(X, Y, Z, U, V, W)
    • scatter(xs, ys, zs)
    • stem(x, y, z)
    • plot_surface(X, Y, Z)
    • plot_trisurf(x, y, z)
    • voxels([x, y, z], filled)
    • plot_wireframe(X, Y, Z)
  • Plot types
  • Statistical...

Statistical distributions#

Plots of the distribution of at least one variable in a dataset. Some of these methods also compute the distributions.

hist(x)

hist(x)

boxplot(X)

boxplot(X)

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)

violinplot(D)

violinplot(D)

eventplot(D)

eventplot(D)

hist2d(x, y)

hist2d(x, y)

hexbin(x, y, C)

hexbin(x, y, C)

pie(x)

pie(x)

ecdf(x)

ecdf(x)

© Copyright 2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012–2025 The Matplotlib development team.

Created using Sphinx 8.2.3.

Built from v3.10.1-805-gde00c493a7.

Built with the PyData Sphinx Theme 0.15.4.