reno.viz#

Various visualization tools, classes, and functions.

A lot of this may eventually need to be broken out into separate submodules for sanity.

Functions

compare_posterior(varname, traces[, ...])

Plot the sampled distribution densities for the specified variable from each of the passed traces + prior trace.

compare_seq(varname, traces[, prior_trace, ...])

Plot the timeseries data for the specified variable from each of the passed traces + prior trace.

density(data[, smoothing])

Get smoothed histogram (density plot) data from an array.

plot_refs(refs[, cols, rows, legends])

Render a bunch of subplots containing the line plots for the values of the passed references.

plot_refs_single_axis(trace, ref_list[, ...])

I've seen this type of plot in a few SDM textbooks and references at this point, it plots all the specified references on the same plot and scales each one individually.

plot_trace_refs(reference_model, traces, ...)

Create a set of plots for each of the specified references, automatically plotting timeseries sequences or distribution densities where relevant.

Classes

ModelLatex(model[, show_docs, start_name, ...])

An interactive widget that displays all of the latex equations of a model.

ModelViewer(model[, exclude_vars, plot_refs])

An interface for viewing a model, modifying any free variables, and simulating live.

ReferenceEditor(model, ref_name, is_init[, ...])

A textbox associated with a reference, used for modifying an equation in a visual interface.