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")