Skip to content

Commit

Permalink
Fix colour scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed Sep 19, 2024
1 parent 6e2ccf3 commit a9e5cf0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions coolpuppy/plotpup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ def get_min_max(pups, vmin=None, vmax=None, sym=True, scale="log"):
vmax = np.nanmax(comb)
vmin = np.nanmin(comb)
elif vmin is not None:
vmax = np.nanmax(comb)
if sym and scale == "log":
vmax = 1
else:
vmax = np.nanmax(comb)
elif vmax is not None:
vmin = np.nanmin(comb)
if sym and scale == "log":
vmin = 1
else:
vmin = np.nanmin(comb)
if sym:

if scale == "linear":
Expand Down

0 comments on commit a9e5cf0

Please sign in to comment.