|
66 | 66 | # all subsequent plotting functions will take place in that subplot panel. This
|
67 | 67 | # is similar to matplotlib's ``plt.sca`` method. In order to specify a subplot,
|
68 | 68 | # you will need to provide the identifier for that subplot via the ``panel``
|
69 |
| -# argument. Pass in either the *index* number, or a tuple/list like |
| 69 | +# parameter. Pass in either the *index* number, or a tuple/list like |
70 | 70 | # (*row*, *col*) to ``panel``.
|
71 | 71 |
|
72 | 72 | ###############################################################################
|
|
91 | 91 | # Making your first subplot
|
92 | 92 | # -------------------------
|
93 | 93 | # Next, let's use what we learned above to make a 2 row by 2 column subplot
|
94 |
| -# figure. We'll also pick up on some new arguments to configure our subplot. |
| 94 | +# figure. We'll also pick up on some new parameters to configure our subplot. |
95 | 95 |
|
96 | 96 | fig = pygmt.Figure()
|
97 | 97 | with fig.subplot(
|
|
111 | 111 |
|
112 | 112 | ###############################################################################
|
113 | 113 | # In this example, we define a 2-row, 2-column (2x2) subplot layout using
|
114 |
| -# :meth:`pygmt.Figure.subplot`. The overall figure dimensions is set to be 15 cm |
115 |
| -# wide and 6 cm high (``figsize=["15c", "6c"]``). In addition, we use some |
116 |
| -# optional arguments to fine-tune some details of the figure creation: |
| 114 | +# :meth:`pygmt.Figure.subplot`. The overall figure dimensions is set to be |
| 115 | +# 15 cm wide and 6 cm high (``figsize=["15c", "6c"]``). In addition, we use |
| 116 | +# some optional parameters to fine-tune some details of the figure creation: |
117 | 117 | #
|
118 | 118 | # - ``autolabel=True``: Each subplot is automatically labelled abcd
|
119 | 119 | # - ``margins=["0.1c", "0.2c"]``: adjusts the space between adjacent subplots.
|
|
146 | 146 | # .. note::
|
147 | 147 | #
|
148 | 148 | # All plotting functions (e.g. :meth:`pygmt.Figure.coast`,
|
149 |
| -# :meth:`pygmt.Figure.text`, etc) are able to use ``panel`` argument when |
| 149 | +# :meth:`pygmt.Figure.text`, etc) are able to use ``panel`` parameter when |
150 | 150 | # in subplot mode. Once a panel is activated using ``panel`` or
|
151 | 151 | # :meth:`pygmt.Figure.set_panel`, subsequent plotting commands that don't
|
152 | 152 | # set a ``panel`` will have their elements added to the same panel as
|
|
157 | 157 | # --------------------------
|
158 | 158 | # In the example above with the four subplots, the two subplots for each row
|
159 | 159 | # have the same Y-axis range, and the two subplots for each column have the
|
160 |
| -# same X-axis range. You can use the ``sharex``/``sharey`` arguments to set a |
| 160 | +# same X-axis range. You can use the ``sharex``/``sharey`` parameters to set a |
161 | 161 | # common X and/or Y axis between subplots.
|
162 | 162 |
|
163 | 163 | fig = pygmt.Figure()
|
|
0 commit comments