Mercurial > repos > bimib > marea_2
changeset 289:77025f4b9e6d draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 04 Aug 2024 19:23:37 +0000 |
parents | 31c5c6815a31 |
children | fe1a93189290 |
files | marea_2/flux_to_map.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/flux_to_map.py Sun Aug 04 19:17:58 2024 +0000 +++ b/marea_2/flux_to_map.py Sun Aug 04 19:23:37 2024 +0000 @@ -872,7 +872,8 @@ # Create the gradient for x in range(width): value = (x / (width - 1)) * (max_value - min_value) + min_value - color = jet_colormap((value - min_value) / (max_value - min_value)) + color_arr = jet_colormap((value - min_value) / (max_value - min_value)) + color = tuple(int(c * 255) for c in color_arr) draw.line([(x, 0), (x, height)], fill=color) # Add text for min and max values