Untitled Making a stack of 2D and 1D data ¶ In [51]: import numpy as np In [52]: a1 = np . ones ( 6 ) . reshape ( 2 , 3 ) a2 = a1 * 2 make a stack of two images ¶ In [53]: mat1 = np . stack ([ a1 , a2 ]) add an image to the stack of two images ¶ In [54]: mat1 = np . vstack ([ mat1 , [ a1 ]]) In [55]: mat1 Out[55]: array([[[1., 1., 1.], [1., 1., 1.]], [[2., 2., 2.], [2., 2., 2.]], [[1., 1., 1.], [1., 1., 1.]]]) In [56]: b1 = np . ones ( 6 ) b2 = b1 * 2 b3 = b1 * 3 make a stack of two 1D list ¶ In [57]: mat2 = np . vstack ([ b1 , b2 ]) add a 1D list to the stack of two 1D list ¶ In [58]...