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

Skip to content

Commit a0c7728

Browse files
committed
DOC : grammar/history fixes
1 parent 9cc4a3e commit a0c7728

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

doc/api/api_changes.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,19 @@ original location:
189189
If `fontpropreties` is not passed in, but `prop` is, then `prop` is used inplace
190190
of `fontpropreties`. If both are passed in, `prop` is silently ignored.
191191

192-
* The use of the index 0 has in `plt.subplot` and related commands is
192+
193+
* The use of the index 0 in `plt.subplot` and related commands is
193194
deprecated. Due to a lack of validation calling `plt.subplots(2, 2,
194195
0)` does not raise an exception, but puts an axes in the _last_
195196
position. This is due to the indexing in subplot being 1-based (to
196-
support the three-digit number scheme) so before indexing into the
197-
`GridSpec` object used to determine where the axes should go one is
198-
subtracted off, resulting in getting the last position back. Even
199-
though this behavior is clearly wrong and not intended, we are going
200-
through a deprecation cycle in an abundance of caution that any users
201-
are exploiting this 'feature'. The use of 0 as an index will raise
202-
a warning in 1.4 and an exception in 1.5.
197+
mirror MATLAB) so before indexing into the `GridSpec` object used to
198+
determine where the axes should go, 1 is subtracted off. Passing in
199+
0 results in passing -1 to `GridSpec` which results in getting the
200+
last position back. Even though this behavior is clearly wrong and
201+
not intended, we are going through a deprecation cycle in an
202+
abundance of caution that any users are exploiting this 'feature'.
203+
The use of 0 as an index will raise a warning in 1.4 and an
204+
exception in 1.5.
203205

204206

205207
Code removal

0 commit comments

Comments
 (0)