diff options
author | sfolje0 <sfolje0@github> | 2020-11-29 21:17:58 +0100 |
---|---|---|
committer | sfolje0 <sfolje0@github> | 2020-11-29 21:17:58 +0100 |
commit | 207e07968721f3380f7c71a87909440b6260d0a6 (patch) | |
tree | 0d5147b70ba1758d339dd21e55494f7e5c24ea50 /doc | |
parent | 76930e7d0c22e227c9ff9249a90a6254c5a6b547 (diff) | |
download | numpy-207e07968721f3380f7c71a87909440b6260d0a6.tar.gz |
DOC: fixed typo in np-indexing.png explaining [-2:] slice in user guide
In User Guide of NumPy in tutorial for absulute beginners, i.e. in
documentation document doc/source/user/absulute_beginners.rst there was
a typo in the image np-indexing.png visualizing slices in **Indexing
and slicing** section. Namely, in the first image in mentioned section,
the last visualized array (under `data[-2:]` command), there was a
picture of `data[:]` or `data[0:3]` (i.e. array([1,2,3])) presenting
the slice indexing. But it should be a picture of of `data[-2:]` (i.e.
array([2,3])). This commit fixes this by adding additional picture of
array([2,3]) under `data[-2:]` command and changing command above last
array([1,2,3]) pic to title named `data` to preserve the idea behind
slice indexing.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/user/images/np_indexing.png | bin | 64363 -> 148808 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/doc/source/user/images/np_indexing.png b/doc/source/user/images/np_indexing.png Binary files differindex 4303ec35b..863b2d46f 100644 --- a/doc/source/user/images/np_indexing.png +++ b/doc/source/user/images/np_indexing.png |