Skip to content

Commit 8093fdd

Browse files
Add cf-plot keyword to set ncols to avoid bug
1 parent fadaf33 commit 8093fdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/recipes/plot_17_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
)
8181
for i, colour_scale in enumerate(colour_scales_columns):
8282
cfp.gpos(i + 1)
83-
cfp.cscale(colour_scale)
83+
cfp.cscale(colour_scale, ncols=11)
8484

8585
# For the topmost plots, label the column with the colour scale category
8686
# using the 'title' argument, otherwise don't add a title.

docs/source/recipes/plot_18_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
# Plot the two contour plots as columns
124124
cfp.gpos(1)
125-
cfp.cscale("wiki_2_0_reduced")
125+
cfp.cscale("wiki_2_0_reduced", ncols=11)
126126
cfp.con(
127127
regridded_orog,
128128
lines=False,

0 commit comments

Comments
 (0)