bayespy.plot

Functions for plotting nodes.

Functions

pdf(Z, x, *args[, name, axes, fig])

Plot probability density function of a scalar variable.

contour(Z, x, y[, n, axes, fig])

Plot 2-D probability density function of a 2-D variable.

plot(Y[, axis, scale, center])

Plot a variable or an array as 1-D function with errorbars

hinton(X, **kwargs)

Plot the Hinton diagram of a node

gaussian_mixture_2d(X[, alpha, scale, fill, ...])

Plot Gaussian mixture as ellipses in 2-D

ellipse_from_cov(xy, cov[, scale])

Create an ellipse from a covariance matrix.

ellipse_from_precision(xy, precision[, scale])

Create an ellipse from a covariance matrix.

Plotters

Plotter(plotter, *args, **kwargs)

Wrapper for plotting functions and base class for node plotters

PDFPlotter(x_grid, **kwargs)

Plotter of probability density function of a scalar node

ContourPlotter(x1_grid, x2_grid, **kwargs)

Plotter of probability density function of a two-dimensional node

HintonPlotter(**kwargs)

Plotter of the Hinton diagram of a node

FunctionPlotter(**kwargs)

Plotter of a node as a 1-dimensional function

GaussianTimeseriesPlotter(**kwargs)

Plotter of a Gaussian node as a timeseries

CategoricalMarkovChainPlotter(**kwargs)

Plotter of a Categorical timeseries