|
1 | 1 | """
|
2 |
| -Subplots |
3 |
| -======== |
| 2 | +Making subplot panels |
| 3 | +===================== |
4 | 4 |
|
5 | 5 | When you're preparing a figure for a paper, there will often be times when
|
6 | 6 | you'll need to put many individual plots into one large figure, and label them
|
|
17 | 17 | use of :meth:`pygmt.Figure.subplot` which offers finer grained control, and
|
18 | 18 | this is what the tutorial below will cover.
|
19 | 19 | """
|
20 |
| - |
21 |
| -############################################################################### |
22 |
| -# Let's start by importing the PyGMT library and initializing a Figure |
| 20 | +# sphinx_gallery_thumbnail_number = 3 |
23 | 21 |
|
24 | 22 | import pygmt
|
25 | 23 |
|
| 24 | +############################################################################### |
| 25 | +# |
| 26 | +# Let's start by initializing a :class:`pygmt.Figure` instance. |
| 27 | + |
26 | 28 | fig = pygmt.Figure()
|
27 | 29 |
|
28 | 30 | ###############################################################################
|
|
222 | 224 | #
|
223 | 225 | # In subplot mode, the size of each subgraph is controlled by the
|
224 | 226 | # ``figsize`` option of :meth:`pygmt.Figure.subplot`. Users can override
|
225 |
| -# this and use``projection`` to specify the size of an individual subplot, |
| 227 | +# this and use ``projection`` to specify the size of an individual subplot, |
226 | 228 | # but this size will not be remembered. If the next command does not
|
227 |
| -# specify``projection``, the default size of the subplot mode will be used, |
228 |
| -# and the resulting plot will be inccorect. |
| 229 | +# specify ``projection``, the default size of the subplot mode will be |
| 230 | +# used, and the resulting plot will be inccorect. |
229 | 231 | #
|
230 | 232 | # The current workaround is to use the same ``projection`` option in all
|
231 | 233 | # commands for the subplot. For example, we forced subplot (a) to have a
|
|
236 | 238 | ###############################################################################
|
237 | 239 | # Since we skipped the second subplot, the auto label function will name the
|
238 | 240 | # three subplots as a, c and d, which is not what we want, so we have to use
|
239 |
| -# ``fig.sca(fixedlabel="(a)"`` to manually set the subplot label. |
| 241 | +# ``fig.sca(fixedlabel="(a)")`` to manually set the subplot label. |
0 commit comments