bnl.viz.create_style_map

bnl.viz.create_style_map(labels, colorscale='D3', patterns=None)[source]

Creates color, pattern, and text style maps for a list of labels.

Parameters:
  • labels (list[str])

  • colorscale (str | list[str])

  • patterns (list[str] | None)

Return type:

dict[str, dict[str, Any]]