Skip to content

Commit

Permalink
feat(colorforge.py): Updated for new ISR levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeyer committed Aug 15, 2023
1 parent e3c15f1 commit f8a836a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/vipersci/carto/colorforge.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
label="Depth to Ice Stability (m)",
cmap="Blues_r",
vmin=0,
vmax=1.1,
vmax=1,
bounded=False,
extend="neither",
),
isr=dict(
label="Depth to Ice Stability (m)",
cmap="Blues_r",
vmin=0,
vmax=1.1,
bounded=[0, 0.01, 0.5, 1, 1.1],
vmax=1,
bounded=[0, 0.01, 0.2, 0.85, 1.0],
extend="neither",
),
stoplight_slope=dict(
Expand Down Expand Up @@ -342,13 +342,11 @@ def plot_colorbar(palette: Palette, orientation: str = "h", output=None):
if orientation in o_dict:
orientation = o_dict[orientation]

fig, ax = plt.subplots()

plt.ioff()
if orientation == "h":
if orientation == "horizontal":
fig, ax = plt.subplots(figsize=(5, 1))
fig.subplots_adjust(bottom=0.5)
elif orientation == "v":
elif orientation == "vertical":
fig, ax = plt.subplots(figsize=(1.2, 5))
fig.subplots_adjust(right=0.4)

Expand Down

0 comments on commit f8a836a

Please sign in to comment.