|
115 | 115 | # 15 cm wide and 6 cm high (``figsize=["15c", "6c"]``). In addition, we use
|
116 | 116 | # some optional parameters to fine-tune some details of the figure creation:
|
117 | 117 | #
|
118 |
| -# - ``autolabel=True``: Each subplot is automatically labelled abcd |
119 |
| -# - ``margins=["0.1c", "0.2c"]``: adjusts the space between adjacent subplots. |
120 |
| -# In this case, it is set as 0.1 cm in the X direction and 0.2 cm in the Y |
121 |
| -# direction. |
122 |
| -# - ``title="My Subplot Heading"``: adds a title on top of the whole figure. |
| 118 | +# - ``autolabel=True``: Each subplot is automatically labelled 'abcd'. |
| 119 | +# - ``margins=["0.1c", "0.2c"]``: Adjusts the space between adjacent subplots. |
| 120 | +# In this case, it is set as 0.1 cm in the x-direction and 0.2 cm in the |
| 121 | +# y-direction. |
| 122 | +# - ``title="My Subplot Heading"``: Adds a title on top of the whole figure. |
123 | 123 | #
|
124 | 124 | # Notice that each subplot was set to use a linear projection ``"X?"``.
|
125 | 125 | # Usually, we need to specify the width and height of the map frame, but it is
|
|
153 | 153 | # before.
|
154 | 154 |
|
155 | 155 | ###############################################################################
|
156 |
| -# Shared X and Y axis labels |
157 |
| -# -------------------------- |
| 156 | +# Shared x- and y-axes |
| 157 | +# -------------------- |
158 | 158 | # In the example above with the four subplots, the two subplots for each row
|
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`` parameters to set a |
161 |
| -# common X and/or Y axis between subplots. |
| 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`` parameters to set a |
| 161 | +# common x- and/or y-axis between subplots. |
162 | 162 |
|
163 | 163 | fig = pygmt.Figure()
|
164 | 164 | with fig.subplot(
|
|
184 | 184 | # subplots within a row will share the y-axis, and only the **l**\ eft axis is
|
185 | 185 | # displayed.
|
186 | 186 | #
|
187 |
| -# Of course, instead of using the ``sharex``/``sharey`` option, you can also |
188 |
| -# set a different ``frame`` for each subplot to control the axis properties |
189 |
| -# individually for each subplot. |
| 187 | +# Of course, instead of using the ``sharex``/``sharey`` parameters, you can |
| 188 | +# also set a different ``frame`` for each subplot to control the axis |
| 189 | +# properties individually for each subplot. |
190 | 190 |
|
191 | 191 | ###############################################################################
|
192 | 192 | # Advanced subplot layouts
|
|
0 commit comments