Skip to content

Commit 91a501f

Browse files
Fix typos in tutorial 'Making subplots' (#2083)
1 parent 2817d6a commit 91a501f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

examples/tutorials/advanced/subplots.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@
115115
# 15 cm wide and 6 cm high (``figsize=["15c", "6c"]``). In addition, we use
116116
# some optional parameters to fine-tune some details of the figure creation:
117117
#
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.
123123
#
124124
# Notice that each subplot was set to use a linear projection ``"X?"``.
125125
# Usually, we need to specify the width and height of the map frame, but it is
@@ -153,12 +153,12 @@
153153
# before.
154154

155155
###############################################################################
156-
# Shared X and Y axis labels
157-
# --------------------------
156+
# Shared x- and y-axes
157+
# --------------------
158158
# 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.
162162

163163
fig = pygmt.Figure()
164164
with fig.subplot(
@@ -184,9 +184,9 @@
184184
# subplots within a row will share the y-axis, and only the **l**\ eft axis is
185185
# displayed.
186186
#
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.
190190

191191
###############################################################################
192192
# Advanced subplot layouts

0 commit comments

Comments
 (0)