Skip to content

Commit 8992b1b

Browse files
Remove file kwarg setting to gopen so plots emerge in gallery
1 parent 8093fdd commit 8992b1b

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

docs/source/recipes/plot_16_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# ensure the number of rows * number of columns = the number of projections.
3333
# Here we are doing 6 projections so 2 x 3 is fine. Then loop through the
3434
# list of projection types and plot each as a sub-plot:
35-
cfp.gopen(rows=2, columns=3, bottom=0.2, file="projections.png")
35+
cfp.gopen(rows=2, columns=3, bottom=0.2)
3636
for i, proj in enumerate(projtypes):
3737
# gpos has 1 added to the index because it takes 1 as its first value
3838
cfp.gpos(i + 1)

docs/source/recipes/plot_18_recipe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
rows=1,
9898
columns=2,
9999
top=0.85,
100-
file="snow_and_orog_on_same_grid.png",
101100
user_position=True,
102101
)
103102

docs/source/recipes/plot_19_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# of the maxima, we loop through the season query mapping and do a
5656
# "T: mean" collapse setting the season as the grouping:
5757
cfp.gopen(
58-
rows=2, columns=1, bottom=0.1, top=0.85, file="global_avg_sst_plot.png"
58+
rows=2, columns=1, bottom=0.1, top=0.85, file="recipe_19.png"
5959
)
6060
cfp.gpos(1)
6161
cfp.gset(xmin="1980-01-01", xmax="2022-12-01", ymin=304, ymax=312)

docs/source/recipes/plot_20_recipe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@
8484
# divergence as a contour plot without any lines showing. This compound
8585
# plot is saved on one canvas using 'gopen' and 'gclose' to wrap the two
8686
# plotting calls:
87-
cfp.gopen(
88-
file=f"irish-sea-currents-divergence-{chosen_time.replace(' ', '-')}.png"
89-
)
87+
cfp.gopen()
9088
cfp.vect(u=u_2, v=v_2, stride=6, scale=3, key_length=1)
9189
cfp.con(
9290
div,

0 commit comments

Comments
 (0)