Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0f9342

Browse files
tacaswellQuLogic
andauthored
DOC: fix typos and wording
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 4c16c0d commit d0f9342

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/next_api_changes/behavior/19438-TAC.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
``plt.subplot`` re-selection without kwargs
1+
``plt.subplot`` re-selection without keyword arguments
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
The purpose of `pyplot.subplot` is to facilitate creating and
@@ -10,14 +10,14 @@ additional keyword arguments through to the Axes-subclass that is created.
1010
The first time `pyplot.subplot` is called for a given position in the
1111
Axes grid it is clear that the correct behavior is to create and
1212
return an Axes at the given position with the passed arguments
13-
(defaulting to a rectilinear Axes). However, on n subsequent calls to
13+
(defaulting to a rectilinear Axes). However, on subsequent calls to
1414
`pyplot.subplot` the correct behavior is more subtle. If an Axes exists
15-
at the requested location and has equivalent parameters the existing axes
15+
at the requested location and has equivalent parameters the existing Axes
1616
should be returned, but if the parameters are different the old Axes is removed
1717
from the Figure and a new Axes is created and returned.
1818

1919
Due to an implementation detail, it was previously the case that for all
20-
Axes subclass, except for Axes3D, the axes would be deemed equivalent even
20+
Axes subclass, except for Axes3D, the Axes would be deemed equivalent even
2121
if the projections were different. Thus ::
2222

2323
ax1 = plt.subplot(1, 1, 1, projection='polar')
@@ -28,7 +28,7 @@ arguments are passed to `pyplot.subplot` and there is an existing Axes
2828
at the grid position, the existing Axes is returned without consideration
2929
of the keywords used to create the Axes.
3030

31-
Due to the previous implementation, if there was an existing Axes what
31+
Due to the previous implementation, if there was an existing Axes that
3232
was not rectilinear, passing ::
3333

3434
plt.subplot(projection='rectilinear')
@@ -43,7 +43,7 @@ there is a change in behavior for ::
4343

4444
plt.subplot(projection='3d') # create a 3D Axes
4545

46-
plt.subplot() # now returns existing 3D Axes
46+
plt.subplot() # now returns existing 3D Axes, but
4747
# previously created new 2D Axes
4848

4949
plt.subplot(projection='rectilinear') # to get a new 2D Axes

0 commit comments

Comments
 (0)