holoviews.plotting.bokeh.styles module#

Defines valid style options, validation and utilities

holoviews.plotting.bokeh.styles.expand_batched_style(style, opts, mapping, nvals)[source]#

Computes styles applied to a batched plot by iterating over the supplied list of style options and expanding any options found in the supplied style dictionary returning a data and mapping defining the data that should be added to the ColumnDataSource.

holoviews.plotting.bokeh.styles.mpl_to_bokeh(properties)[source]#

Utility to process style properties converting any matplotlib specific options to their nearest bokeh equivalent.

holoviews.plotting.bokeh.styles.rgba_tuple(rgba)[source]#

Ensures RGB(A) tuples in the range 0-1 are scaled to 0-255.

holoviews.plotting.bokeh.styles.validate(style, value, scalar=False)[source]#

Validates a style and associated value.

Parameters#

stylestr

The style to validate (e.g. ‘color’, ‘size’ or ‘marker’)

value :

The style value to validate

scalar : bool

Returns#

validboolean or None

If validation is supported returns boolean, otherwise None