Linear Algebra, Mathematics, Math, Principal Component, Python.
0.114]) def plt_images(M, A, E, index_array, dims, filename=None): f = plt.figure(figsize=(15, 10)) r = len(index_array) pics = r * 3 for k, i in enumerate(index_array): for j, mat in enumerate([M, A, E]): sp = f.add_subplot(r, 3, 3*k + j + 1) sp.axis('Off') pixels = mat[:,i] if isinstance(pixels,