colorbar
- compas_fea2.utilities.colorbar(fsc, input='array', type=255)[source]
Creates RGB color information from -1 to 1 scaled values.
- Parameters:
fsc (array, float) – (n x 1) array of scaled data, or a single float value.
input (str) – Input given as an ‘array’ of numbers or a ‘float’.
type (int) – RGB as 255 or 1 scaled.
- Returns:
array, list – (n x 3) array of RGB values or single RGB list.