Skip to content

Commit b962c8e

Browse files
Select best representative cmaps for NH original recipe 17
1 parent 43371e4 commit b962c8e

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

docs/source/recipes/plot_17_recipe.py

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,15 @@
3434

3535
# %%
3636
# a. Perceptually uniform colour scales, with no zero value
37-
colour_scale_pu = [
38-
"viridis",
39-
"magma",
40-
"inferno",
41-
] # "plasma", "parula", "gray"]
37+
colour_scale_pu = ["viridis", "magma", "plasma"]
4238

4339

4440
# %%
4541
# b. NCAR Command Language - Enhanced to help with colour blindness
4642
colour_scale_ncl = [
47-
"StepSeq25",
48-
"posneg_2",
49-
# "posneg_1",
50-
# "BlueDarkOrange18",
51-
# "BlueDarkRed18",
43+
"posneg_1",
5244
"GreenMagenta16",
53-
# "BlueGreen14",
54-
# "BrownBlue12",
55-
# "Cat12",
45+
"StepSeq25",
5646
]
5747

5848

@@ -63,12 +53,9 @@
6353
# You could instead use cfp.cscale('wiki_2_0', ncols=16, below=2, above=14)
6454
# or any other orography colour scale in a similar way.
6555
colour_scale_ob = [
66-
"os250kmetres",
6756
"wiki_1_0_2",
68-
# "wiki_1_0_3",
69-
# "wiki_2_0",
70-
# "wiki_2_0_reduced",
71-
"arctic",
57+
"wiki_2_0",
58+
"wiki_2_0_reduced",
7259
]
7360

7461

@@ -107,7 +94,8 @@
10794
axes=False,
10895
colorbar_drawedges=False,
10996
colorbar_title=f"Shown in '{colour_scale}'",
110-
colorbar_fraction=0.03,
97+
colorbar_fraction=0.04,
98+
colorbar_thick=0.02,
11199
colorbar_fontsize=11,
112100
)
113101
elif i < 3:
@@ -127,7 +115,8 @@
127115
title=set_title,
128116
colorbar_drawedges=False,
129117
colorbar_title=f"Shown in '{colour_scale}'",
130-
colorbar_fraction=0.03,
118+
colorbar_fraction=0.04,
119+
colorbar_thick=0.02,
131120
colorbar_fontsize=11,
132121
)
133122

@@ -138,8 +127,9 @@
138127
axes=False,
139128
colorbar_drawedges=False,
140129
colorbar_title=f"Shown in '{colour_scale}'",
130+
colorbar_fraction=0.04,
131+
colorbar_thick=0.02,
141132
colorbar_fontsize=11,
142-
colorbar_fraction=0.03,
143133
)
144134

145135
cfp.gclose(view=True)

0 commit comments

Comments
 (0)