Skip to content

plotlive.figure & axes

Figure(figsize=(6.4, 4.8), facecolor='white', **kwargs)

Top-level container. Owns all Axes and the pygame surface.

add_axes(rect, **kwargs)

Add axes at rect=(left, bottom, width, height) in normalized [0,1] coords.

add_subplot(nrows, ncols, index, **kwargs)

Add subplot at 1-based index in nrows×ncols grid.

Axes(figure, rect_norm)

One subplot. Stores all artists and axis state. Rendering is delegated to AxesRenderer.

barh(y, width, height=0.8, left=0, color=None, edgecolor='black', linewidth=1.0, align='center', label='', alpha=1.0, **kwargs)

Horizontal bar chart.

cla()

Clear axes — reset artists and state.

hist(x, bins=10, range=None, density=False, weights=None, color=None, edgecolor='black', alpha=1.0, label='', orientation='vertical', **kwargs)

Compute histogram and create Rectangle patches. Returns (n, edges, patches).

plot(*args, **kwargs)

Plot lines. Returns list of Line2D.