treescope.figures

treescope.figures#

Containers for conveniently rendering multiple objects together.

These containers make it possible to group together multiple children so that they render as a single figure-like display object in IPython, and allow embedding arbitrary treescope-renderable objects or treescope-compatible styles as figures.

Functions

bolded(subfigure)

Returns a bolded version of the first figure.

figure_from_treescope_rendering_part(part)

Returns a figure object that displays a Treescope rendering part.

indented(subfigure)

Returns a figure object that displays a value with an indent.

inline(*subfigures[, wrap])

Returns a figure that arranges a set of displayable objects along a line.

styled(subfigure, style)

Returns a CSS-styled version of the first figure.

text_on_color(text, value[, vmax, vmin, ...])

Renders some text on colored background, with the default colormap.

treescope_part_from_display_object(value)

Converts an arbitrary object to a renderable treescope part if possible.

with_color(subfigure, color)

Returns a colored version of the first figure.

with_font_size(subfigure, size)

Returns a scaled version of the first figure.