How to use the arviz.style.use function in arviz

To help you get started, we’ve selected a few arviz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github arviz-devs / arviz / examples / matplotlib / mpl_plot_loo_pit_overlay.py View on Github external
"""
LOO-PIT Overlay Plot
====================

_thumb: .5, .7
"""
import arviz as az

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

idata = az.load_arviz_data("non_centered_eight")

az.plot_loo_pit(idata=idata, y="obs", color="indigo")
github arviz-devs / arviz / examples / matplotlib / mpl_plot_hpd.py View on Github external
"""
Plot HPD
========

_thumb: .8, .8
"""
import matplotlib.pyplot as plt
import numpy as np
import arviz as az

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

x_data = np.random.normal(0, 1, 100)
y_data = 2 + x_data * 0.5
y_data_rep = np.random.normal(y_data, 0.5, (200, 100))
plt.plot(x_data, y_data, "C6")
az.plot_hpd(x_data, y_data_rep, color="k", plot_kwargs={"ls": "--"})
github arviz-devs / arviz / examples / matplotlib / mpl_plot_pair_hex.py View on Github external
"""
Hexbin PairPlot
===============

_thumb: .2, .5
"""
import arviz as az

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

centered = az.load_arviz_data("centered_eight")

coords = {"school": ["Choate", "Deerfield"]}
az.plot_pair(
    centered,
    var_names=["theta", "mu", "tau"],
    kind="hexbin",
    coords=coords,
    colorbar=True,
    divergences=True,
)
github arviz-devs / arviz / examples / matplotlib / mpl_plot_ess_quantile.py View on Github external
"""
ESS Quantile Plot
=================

_thumb: .4, .5
"""
import arviz as az

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

idata = az.load_arviz_data("radon")

az.plot_ess(idata, var_names=["sigma_y"], kind="quantile", color="C4")
github arviz-devs / arviz / examples / matplotlib / mpl_plot_posterior.py View on Github external
"""
Posterior Plot
==============

_thumb: .5, .8
"""
import arviz as az

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

data = az.load_arviz_data("centered_eight")

coords = {"school": ["Choate"]}
az.plot_posterior(data, var_names=["mu", "theta"], coords=coords, rope=(-1, 1))
github arviz-devs / arviz / examples / matplotlib / mpl_plot_ess_evolution.py View on Github external
"""
ESS Quantile Plot
=================

_thumb: .2, .8
"""
import arviz as az

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

idata = az.load_arviz_data("radon")

az.plot_ess(idata, var_names=["b"], kind="evolution")
github arviz-devs / arviz / examples / matplotlib / mpl_plot_ess_local.py View on Github external
"""
ESS Local Plot
==============

_thumb: .6, .5
"""
import arviz as az

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

idata = az.load_arviz_data("non_centered_eight")

az.plot_ess(idata, var_names=["mu"], kind="local", marker="_", ms=20, mew=2, rug=True)