# HG changeset patch # User luca_milaz # Date 1722799417 0 # Node ID 77025f4b9e6dda91cf3a4309ff25130282d52ba2 # Parent 31c5c6815a31689d61874d038ace1a2ddb427f81 Uploaded diff -r 31c5c6815a31 -r 77025f4b9e6d marea_2/flux_to_map.py --- 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