Visual elements#

Intermediate level visuals elements.

The visuals module provides backend-agnostic functionality. That is, the functions in this module take a set of arguments, take care of backend-agnostic processing of those arguments and eventually they call the requested plotting backend.

Data plotting elements#

ci_line_y(values, target, **kwargs)

Plot a line from y_bottom to y_top at given value of x.

ecdf_line(values, target, **kwargs)

Plot a step line.

fill_between_y(da, target, *[, x, y_bottom, ...])

Fill the region between to given y values.

hline(values, target, **kwargs)

Plot a horizontal line that spans the whole figure independently of zoom.

hist(da, target, **kwargs)

Plot a histogram bins(as two arrays of left and right bin edges) vs bin_height('y').

hspan(da, target, **kwargs)

Plot a vertical shaded region that spans the whole figure.

line(da, target[, xname])

Plot a line along the y axis with x being the range of len(y).

multiple_lines(da, target, x_dim[, xvalues])

Plot multiple lines together.

line_xy(da, target[, x, y])

Plot a line x vs y.

line_x(da, target[, y])

Plot a line along the x axis (y constant).

scatter_xy(da, target[, x, y, mask])

Plot a scatter plot x vs y.

scatter_x(da, target[, y])

Plot a dot/rug/scatter along the x axis (y constant).

scatter_xy(da, target[, x, y, mask])

Plot a scatter plot x vs y.

scatter_couple(da_x, da_y, target[, mask])

Plot a scatter plot for a pairplot couple.

trace_rug(da, target, mask[, xname, y])

Create a rug plot with the subset of da indicated by mask.

vline(values, target, **kwargs)

Plot a vertical line that spans the whole figure independently of zoom.

vspan(da, target, **kwargs)

Plot a vertical shaded region that spans the whole figure.

Data and axis annotating elements#

annotate_label(da, target, *, var_name, sel, ...)

Annotate a dimension or aesthetic property.

annotate_xy(da, target, *, text[, x, y, ...])

Annotate a point (x, y) in a plot.

labelled_title(da, target, *[, text, ...])

Add a title label to a plot using an ArviZ labeller.

labelled_x(da, target, *[, text, labeller, ...])

Add a x label to a plot using an ArviZ labeller.

labelled_y(da, target, *[, text, labeller, ...])

Add a y label to a plot using an ArviZ labeller.

label_plot(da, target[, text, x, y, ...])

Add a label to a plot.

point_estimate_text(da, target, *, ...[, x, ...])

Annotate a point estimate.

Plot customization elements#

remove_axis(da, target, **kwargs)

Dispatch to remove_axis function in backend.

remove_ticks(da, target, **kwargs)

Dispatch to remove_axis function in backend.

set_xticks(da, target, values, labels, **kwargs)

Dispatch to set_xticks function in backend.

ticklabel_props(da, target, **kwargs)

Set the size of ticks.

grid(da, target, **kwargs)

Dispatch to remove_axis function in backend.