colormap_by_name¶
-
visualife.core.styles.colormap_by_name(scale_name, min_val, max_val, if_reversed=False)¶ Sets the real values for colors for given color map Returns ColorMap object
Parameters: - scale_name (
string) – name of a color scale - min_val (
integer) – minimum value of a scale - max_val (
integer) – maximum value of a scale - if_reversed (
boolean) – if True, the colors will be used in the reversed order
- scale_name (