Skip to content

Commit 1ee5922

Browse files
authored
Merge pull request matplotlib#30816 from ruvilonix/main
Fix typos in API interfaces documentation
2 parents ac2fc0e + 6ce43e3 commit 1ee5922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galleries/users_explain/figure/api_interfaces.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interfaces and how to translate from one to the other.
148148
- Axes: ``label = ax.get_xlabel()``
149149
- pyplot: ``label = plt.xlabel()``
150150

151-
- Functions that set properties like the property in pyplot and are prefixed with
151+
- Functions that set properties are named like the property in pyplot and are prefixed with
152152
``set_`` on the Axes. Example:
153153

154154
- Axes: ``ax.set_xlabel("time")``
@@ -174,7 +174,7 @@ referenced by ``plt.gca()``? One simple way is to call ``subplot`` again with
174174
the same arguments. However, that quickly becomes inelegant. You can also
175175
inspect the Figure object and get its list of Axes objects, however, that can be
176176
misleading (colorbars are Axes too!). The best solution is probably to save a
177-
handle to every Axes you create, but if you do that, why not simply create the
177+
handle to every Axes you create, but if you do that, why not simply create
178178
all the Axes objects at the start?
179179

180180
The first approach is to call ``plt.subplot`` again:

0 commit comments

Comments
 (0)