diff options
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/user/absolute_beginners.rst | 5 | ||||
-rw-r--r-- | doc/source/user/images/np_create_matrix.png | bin | 36296 -> 10556 bytes |
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/user/absolute_beginners.rst b/doc/source/user/absolute_beginners.rst index fda73c5fb..53be9aca8 100644 --- a/doc/source/user/absolute_beginners.rst +++ b/doc/source/user/absolute_beginners.rst @@ -871,10 +871,11 @@ Creating matrices You can pass Python lists of lists to create a 2-D array (or "matrix") to represent them in NumPy. :: - >>> data = np.array([[1, 2], [3, 4]]) + >>> data = np.array([[1, 2], [3, 4], [5, 6]]) >>> data array([[1, 2], - [3, 4]]) + [3, 4], + [5, 6]]) .. image:: images/np_create_matrix.png diff --git a/doc/source/user/images/np_create_matrix.png b/doc/source/user/images/np_create_matrix.png Binary files differindex cd685c4f5..65e4535e5 100644 --- a/doc/source/user/images/np_create_matrix.png +++ b/doc/source/user/images/np_create_matrix.png |