2d KDEΒΆ

../../_images/mpl_plot_kde_2d.png

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

API documentation: plot_kde()

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