Skip to content

Commit

Permalink
colormap LRR map correction
Browse files Browse the repository at this point in the history
The selected colormap for plotting the LRR map has been corrected. Previously, when ALL transects had negative LRR values (i.e. all transects were eroding), the former colormap was inverted, so that the darker colors were assigned to lower LRR values, which was counter-intuitive.
  • Loading branch information
AlbertGallegoJimenez committed Apr 24, 2024
1 parent c28aced commit 815e056
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified src/tools/utils/__pycache__/plot_results.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/tools/utils/plot_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _set_map_configuration(self, metric):
norm = TwoSlopeNorm(vmin=metric_min, vcenter=0, vmax=metric_max)
extend_cbar = 'both'
elif metric_min < 0 and metric_max < 0:
cmap = plt.get_cmap('Reds')
cmap = plt.get_cmap('Reds_r')
norm = Normalize(vmin=metric_min, vmax=0)
extend_cbar = 'min'
elif metric_min > 0 and metric_max > 0:
Expand Down

0 comments on commit 815e056

Please sign in to comment.