Skip to content

Commit 5b4ca44

Browse files
committed
[EJP] plotting/utils.py fix colorbar
1 parent 644f5d4 commit 5b4ca44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluemath_tk/core/plotting/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def join_colormaps(
105105

106106
bounds1 = np.linspace(value_range1[0], value_range1[1], 129)
107107
bounds2 = np.linspace(value_range2[0], value_range2[1], 129)
108-
all_bounds = np.concatenate([bounds1[:-1], bounds2])
108+
all_bounds = np.sort(np.concatenate([bounds1[:-1], bounds2]))
109109

110110
norm = BoundaryNorm(boundaries=all_bounds, ncolors=len(newcolors))
111111

0 commit comments

Comments
 (0)