Ask Your Question

Revision history [back]

click to hide/show revision 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)
click to hide/show revision 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)