|
19 | 19 | f = cf.read("~/recipes/ggap.nc")[0]
|
20 | 20 |
|
21 | 21 | # %%
|
22 |
| -# 3. Create the file with subplots. If changing the number of subplots, |
23 |
| -# ensure the number of rows * number of columns = the number of projections. |
24 |
| -# Here we are doing 6 projections so 2 x 3 is fine: |
25 |
| -cfp.gopen(rows=2, columns=3, bottom=0.2, file="projections.png") |
26 |
| - |
27 |
| -# %% |
28 |
| -# 4. List the projection types to use. Here we are using |
| 22 | +# 3. List the projection types to use. Here we are using |
29 | 23 | # Cylindrical/Default, North Pole Stereographic, South Pole Stereographic,
|
30 | 24 | # Mollweide, Mercator and Robinson. However there are several other choices
|
31 | 25 | # possible, see:
|
|
34 | 28 | projtypes = ["cyl", "npstere", "spstere", "moll", "merc", "robin"]
|
35 | 29 |
|
36 | 30 | # %%
|
37 |
| -# 5. Loop through the list of projection types and plot each as a sub-plot: |
| 31 | +# 4. Create the file with subplots. If changing the number of subplots, |
| 32 | +# ensure the number of rows * number of columns = the number of projections. |
| 33 | +# Here we are doing 6 projections so 2 x 3 is fine. Then loop through the |
| 34 | +# list of projection types and plot each as a sub-plot. |
| 35 | +cfp.gopen(rows=2, columns=3, bottom=0.2, file="projections.png") |
38 | 36 | for i, proj in enumerate(projtypes):
|
39 | 37 | # gpos has 1 added to the index because it takes 1 as its first value
|
40 | 38 | cfp.gpos(i + 1)
|
|
0 commit comments