Styles

Overview

Styles are a special subclass of Processors that transform the values inside an Evaluation into CSS styles. The output of a Style can then be used with certain Visualizers to add color to the final display.

Using Colormaps

The ColorMapStyle style takes a Matplotlib Colormap as a parameter, which allows for the background color of each cell to be dependent on the value inside it. Since Colormaps expect the input value to be between 0 and 1, we usually have a processor in the pipeline before applying the Style. This is demonstrated in the Styling section of the First Steps guide.