Joint Plot#

See also

API Documentation: plot_pair()

../_images/mpl_plot_joint.png
import matplotlib.pyplot as plt

import arviz as az

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

data = az.load_arviz_data("non_centered_eight")

az.plot_pair(
    data,
    var_names=["theta"],
    coords={"school": ["Choate", "Phillips Andover"]},
    kind="hexbin",
    marginals=True,
    figsize=(11.5, 11.5),
)
plt.show()
import arviz as az

data = az.load_arviz_data("non_centered_eight")

ax = az.plot_pair(
    data,
    var_names=["theta"],
    coords={"school": ["Choate", "Phillips Andover"]},
    kind="hexbin",
    figsize=(8, 8),
    marginals=True,
    marginal_kwargs={"plot_kwargs": {"line_width": 3, "line_color": "black"}},
    hexbin_kwargs={"size": 1.5},
    backend="bokeh",
)