|
207 | 207 | fig.basemap(
|
208 | 208 | region=[0, 5, 0, 5], projection="X?", frame=["af", "WSne"], panel=[0, 1]
|
209 | 209 | )
|
| 210 | +# Move the plot origin upward by 1 cm |
| 211 | +fig.shift_origin(yshift="h+1c") |
210 | 212 | # Top row, one subplot
|
211 |
| -with fig.subplot( |
212 |
| - nrows=1, ncols=1, figsize=("15c", "3c"), autolabel="a)", yshift="h+1c" |
213 |
| -): |
| 213 | +with fig.subplot(nrows=1, ncols=1, figsize=("15c", "3c"), autolabel="a)"): |
214 | 214 | fig.basemap(
|
215 | 215 | region=[0, 10, 0, 10], projection="X?", frame=["af", "WSne"], panel=[0, 0]
|
216 | 216 | )
|
|
223 | 223 | # We start by drawing the bottom two subplots, setting ``autolabel="b)"`` so
|
224 | 224 | # that the subplots are labelled 'b)' and 'c)'. Then, we plot a single subplot
|
225 | 225 | # on the top row by using ``fig.subplot(..., yshift="h+1c")`` which shifts the
|
226 |
| -# plot origin 1 cm beyond the **h**\ eight of the previous (bottom row) plot. |
227 |
| -# You may need to adjust this ``yshift`` parameter to make your plot look nice. |
228 |
| -# This top row uses ``autolabel="a)"``, and we also plotted some text inside. |
229 |
| -# Note that ``projection="X?"`` was used to let GMT automatically determine the |
230 |
| -# size of the subplot according to the size of the subplot area. |
| 226 | +# plot origin 1 cm above the **h**\ eight of the entire figure that is |
| 227 | +# currently plotted (i.e. the bottom row subplots). You may need to adjust this |
| 228 | +# ``yshift`` parameter to make your plot look nice. This top row uses |
| 229 | +# ``autolabel="a)"``, and we also plotted some text inside. Note that |
| 230 | +# ``projection="X?"`` was used to let GMT automatically determine the size of |
| 231 | +# the subplot according to the size of the subplot area. |
231 | 232 |
|
232 | 233 | ###############################################################################
|
233 | 234 | # You can also manually override the ``autolabel`` for each subplot using for
|
234 |
| -# example, ``fig.set_panel(..., fixedlabel="b) Panel 2"`` which would allow you |
235 |
| -# to manually label a single subplot as you wish. This can be useful for adding |
236 |
| -# a more descriptive subtitle to individual subplots. |
| 235 | +# example, ``fig.set_panel(..., fixedlabel="b) Panel 2")`` which would allow |
| 236 | +# you to manually label a single subplot as you wish. This can be useful for |
| 237 | +# adding a more descriptive subtitle to individual subplots. |
0 commit comments