Skip to content

Commit fd167a8

Browse files
Add contour plot title to finalise plot output of recipe 20
1 parent a012e57 commit fd167a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/source/recipes/plot_20_recipe.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,12 @@
6262
cfp.gopen(file=f"irish-sea-currents-with-divergence-{chosen_time}.png")
6363
cfp.cscale("ncl_default")
6464
cfp.vect(u=u_2, v=v_2, stride=6, scale=3, key_length=1)
65-
cfp.con(div, lines=False)
65+
cfp.con(
66+
div,
67+
lines=False,
68+
title=(
69+
f"Depth-averaged Irish Sea currents at {chosen_time} "
70+
"with their divergence shown"
71+
)
72+
)
6673
cfp.gclose()

0 commit comments

Comments
 (0)