toyplot.style module

Functionality for working with CSS style information.

toyplot.style.combine(*styles)[source]

Combine multiple style specifications into one.

Parameters:styles (sequence of dict instances) – A collection of dicts containing CSS-compatible name-value pairs.
Returns:styles
Return type:dict containing CSS-compatible name-value pairs.
toyplot.style.parse(css)[source]

Parse a CSS style into a dict.

toyplot.style.to_css(*styles)[source]