Skip to content

Commit 683ff57

Browse files
committed
Add fig.subplot and fig.sca to API docs
Also updated tutorial a bit
1 parent f2ac98b commit 683ff57

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doc/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Plotting data and laying out the map:
3434
Figure.legend
3535
Figure.logo
3636
Figure.image
37+
Figure.sca
3738
Figure.shift_origin
39+
Figure.subplot
3840
Figure.text
3941
Figure.meca
4042

examples/tutorials/subplots.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
fig.show()
6363

6464
###############################################################################
65-
# The ``fig.sca`` command activates a specified subplot, and all subsequent
66-
# plotting commands will take place in that subplot. This is similar to
67-
# matplotlib's ``plt.sca`` method. In order to specify a subplot, you will need
68-
# to provide the identifier for that subplot via the ``ax`` argument. This can
69-
# be found in the ``axs`` variable referenced by the ``row`` and ``col``
65+
# The :meth:`pygmt.Figure.sca` command activates a specified subplot, and all
66+
# subsequent plotting commands will take place in that subplot. This is similar
67+
# to matplotlib's ``plt.sca`` method. In order to specify a subplot, you will
68+
# need to provide the identifier for that subplot via the ``ax`` argument. This
69+
# can be found in the ``axs`` variable referenced by the ``row`` and ``col``
7070
# number.
7171

7272
###############################################################################
@@ -235,4 +235,4 @@
235235
###############################################################################
236236
# Since we skipped the second subplot, the auto label function will name the
237237
# three subplots as a, c and d, which is not what we want, so we have to use
238-
# ``fig.sca(A=""(a)"`` to manually set the subplot label.
238+
# ``fig.sca(autolabel=""(a)"`` to manually set the subplot label.

0 commit comments

Comments
 (0)