From 35242b19c33ca0bd4358032244390a51ca936919 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Fri, 24 Apr 2026 15:04:27 +0200 Subject: [PATCH 1/2] Add norm/colorbar to shading plots in multiplot --- src/solarpy/plotting/multiplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solarpy/plotting/multiplot.py b/src/solarpy/plotting/multiplot.py index c0b7b42..de67421 100644 --- a/src/solarpy/plotting/multiplot.py +++ b/src/solarpy/plotting/multiplot.py @@ -628,8 +628,8 @@ def multiplot(times, data, meta, horizon=None, google_api_key=None, figsize=(24, solar_azimuth=data["solar_azimuth"][mask], solar_elevation=90 - data["solar_zenith"][mask], ax=ax, - cmap=solarpy.plotting.two_part_colormap() - norm=TwoSlopeNorm(vmin=0, vcenter=0.05, vmax=0.7) + cmap=solarpy.plotting.two_part_colormap(), + norm=TwoSlopeNorm(vmin=0, vcenter=0.05, vmax=0.7), colorbar_label=clabel, northern_hemisphere=meta["latitude"] > 0, ) From efa68dff295721f64def23a290e39ec4cefee679 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Fri, 24 Apr 2026 15:27:54 +0200 Subject: [PATCH 2/2] Apply suggestion from @AdamRJensen --- src/solarpy/plotting/multiplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solarpy/plotting/multiplot.py b/src/solarpy/plotting/multiplot.py index de67421..6328add 100644 --- a/src/solarpy/plotting/multiplot.py +++ b/src/solarpy/plotting/multiplot.py @@ -628,7 +628,7 @@ def multiplot(times, data, meta, horizon=None, google_api_key=None, figsize=(24, solar_azimuth=data["solar_azimuth"][mask], solar_elevation=90 - data["solar_zenith"][mask], ax=ax, - cmap=solarpy.plotting.two_part_colormap(), + cmap=two_part_colormap(), norm=TwoSlopeNorm(vmin=0, vcenter=0.05, vmax=0.7), colorbar_label=clabel, northern_hemisphere=meta["latitude"] > 0,