plot#

Plot distributions stored in xarray.DataArray across coordinates.

Used to plot the prior and posterior of the various MMM components.

See the plot_curve() function for more information.

Functions

create_legend_handles(colors[, alpha, line, ...])

Create the legend handles for the given colors.

drop_scalar_coords(curve)

Remove scalar coordinates from an xarray DataArray.

generate_colors(n[, start])

Generate list of colors.

get_plot_coords(coords, non_grid_names)

Get the plot coordinates.

get_total_coord_size(coords)

Get the total size of the coordinates.

plot_curve(curve, non_grid_names[, ...])

Plot HDI with samples of the curve across coords.

plot_hdi(curve, non_grid_names[, ...])

Plot hdi of the curve across coords.

plot_samples(curve, non_grid_names[, n, ...])

Plot n samples of the curve across coords.

random_samples(rng, n, n_chains, n_draws)

Generate random samples from the chains and draws.

selections(coords)

Create generator of selections.

set_subplot_kwargs_defaults(subplot_kwargs, ...)

Set the defaults for the subplot kwargs.