mtl5.io.spy_density#

mtl5.io.spy_density(A, path, max_pixels: int = 1024, log_scale: bool = False)#

Colour each pixel by how many non-zeros landed in it.

The useful view once the matrix is bigger than the image, where spy would saturate every pixel to black regardless of how many entries it covers.