1 | initial version |
Your matrix is not square. With aspect_ratio=1, all pixels are the same size. If you want a square picture, you have to compress in the x direction:
matrix_plot(random_matrix(ZZ,50,100)).show(aspect_ratio=2)
2 | I wasn't clear before |
Your matrix is not square. square, and the result looks just fine to me. With aspect_ratio=1, all pixels are the same size. square, so a 50x100 matrix becomes a 250x500 image. If you want a square picture, you have to compress in the x direction:
matrix_plot(random_matrix(ZZ,50,100)).show(aspect_ratio=2)