iwfm.plot.data_to_color¶
- iwfm.plot.data_to_color(value, min_value, max_value, colormap='rainbow')[source]¶
Map a data value to a corresponding RGB color.
- Parameters:
- Returns:
rgb_color – A tuple containing three integers (R, G, B) representing the RGB color components of the mapped color. Each component ranges from 0 to 255.
- Return type: