Skip to content

Commit

Permalink
plot: fix norm syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 21, 2024
1 parent 1130eed commit 942b0c8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/dmsp/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def spectrasubplot(
dat.elevation,
dat[l].values.T,
cmap="cubehelix_r",
norm=LogNorm(),
vmin=c[0],
vmax=c[1],
norm=LogNorm(vmin=c[0], vmax=c[1]),
)

hc = fg.colorbar(h, ax=a, format=sfmt)
Expand Down Expand Up @@ -120,9 +118,7 @@ def plotratio(
ratio.elevation,
ratio.values,
cmap="bwr",
norm=MidpointNormalize(midpoint=ratlim[1]),
vmin=ratlim[0],
vmax=ratlim[2],
norm=MidpointNormalize(midpoint=ratlim[1], vmin=ratlim[0], vmax=ratlim[2]),
)

for f in elfid:
Expand Down

0 comments on commit 942b0c8

Please sign in to comment.