Logo image Logo image dev
  • Getting Started
  • Example Gallery
  • User Guide
  • API Reference
  • Community
  • Contributing
  • About
  • Autocorrelation Plot
  • Bayesian p-value Posterior plot
  • Bayesian p-value with median T statistic Posterior plot
  • Compare Plot
  • Density Plot
  • Dist Plot
  • Dot Plot
  • ELPD Plot
  • Energy Plot
  • ESS Quantile Plot
  • ESS Local Plot
  • ESS Quantile Plot
  • Forest Plot
  • Ridgeplot
  • Plot HDI
  • Joint Plot
  • KDE Plot
  • 2d KDE (default style)
  • 2d KDE (custom style)
  • 2d KDE with HDI Contours
  • KDE quantiles
  • Pareto Shape Plot
  • Regression Plot
  • LOO-PIT ECDF Plot
  • LOO-PIT Overlay Plot
  • Quantile Monte Carlo Standard Error Plot
  • Quantile MCSE Errobar Plot
  • Pair Plot
  • Hexbin PairPlot
  • KDE Pair Plot
  • KDE Pair Plot with HDI Contours
  • Point Estimate Pairplot
  • Parallel Plot
  • MinMax Parallel Plot
  • Normal Parallel Plot
  • Rank Parallel Plot
  • Posterior Plot
  • Posterior Plot (reducing school dimension)
  • Posterior Predictive Check Plot
  • Posterior Predictive Check Cumulative Plot
  • Rank plot
  • Separation Plot
  • Traceplot
  • Traceplot rank_bars
  • Traceplot circular variables
  • Traceplot rank_vlines
  • Violin plot
  • Matplotlib styles
Edit this page
Support ArviZ

2d KDE (default style)#

API documentation: plot_kde()

../_images/mpl_plot_kde_2d.png

Python source code: [download source: matplotlib/mpl_plot_kde_2d.py]

import matplotlib.pyplot as plt
import numpy as np

import arviz as az

az.style.use("arviz-darkgrid")

az.plot_kde(np.random.rand(100), np.random.rand(100))

plt.show()

Python source code: [download source: bokeh/bokeh_plot_kde_2d.py]

import numpy as np

import arviz as az

ax = az.plot_kde(np.random.rand(100), np.random.rand(100), backend="bokeh")

previous

KDE Plot

next

2d KDE (custom style)

© Copyright 2018, ArviZ devs.

Created using Sphinx 4.5.0.