From f8a836a1fc6f575d6232a607febf5995a4be365d Mon Sep 17 00:00:00 2001 From: Ross Beyer Date: Thu, 10 Aug 2023 16:26:38 -0700 Subject: [PATCH] feat(colorforge.py): Updated for new ISR levels. --- src/vipersci/carto/colorforge.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/vipersci/carto/colorforge.py b/src/vipersci/carto/colorforge.py index 40c38a1..e859f5c 100755 --- a/src/vipersci/carto/colorforge.py +++ b/src/vipersci/carto/colorforge.py @@ -53,7 +53,7 @@ label="Depth to Ice Stability (m)", cmap="Blues_r", vmin=0, - vmax=1.1, + vmax=1, bounded=False, extend="neither", ), @@ -61,8 +61,8 @@ 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( @@ -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)