Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Command line tool to visualize numeric arrays.

Project description

imshow is a command-line utility for visualizing matrices. It is essentially a wrapper for the matplotlib / MATLAB command of the same name.


$ python -e 'import numpy; numpy.savetxt("array.txt", numpy.random.normal(size=(60, 60)))'
$ imshow array.txt

produces the file array.png containing an image of a random square matrix with 60 entries per side.

Example of default output.

The input file array.txt should readable by numpy.loadtxt(), i.e. be a space-delimited square matrix.

The default output name array.png can be overridden by specifying a second argument. The extension of the output file name controls the output format.

$ imshow array.txt array.jpg

The same array in JPEG format.

Several options, detailed in imshow -h, control the appearance of the plot.

$ imshow -g -b array.txt array.2.png

The same array, with a grid and colormap added.


Numpy and matplotlib.


Jonathan Terhorst <>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for imshow, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size imshow-0.0.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page