Skip to content

Commit

Permalink
Merge pull request #64 from maxhollmann/fix-vmin-max-normalization
Browse files Browse the repository at this point in the history
_shade_map normalizes vmin and vmax instead of recalculating them from normalized zdata
  • Loading branch information
raphaelquast authored Apr 5, 2022
2 parents 621c2c6 + 323e303 commit 2cc69b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eomaps/eomaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ def _shade_map(
return

# re-evaluate vmin and vmax after normalization
vmin, vmax = np.nanmin(zdata), np.nanmax(zdata)
vmin, vmax = self.classify_specs._norm([vmin, vmax]).astype(float)
# re-instate masked values
zdata[~z_finite] = np.nan

Expand Down

0 comments on commit 2cc69b2

Please sign in to comment.