Skip to main content

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
imshow-0.0.3.tar.gz (2.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page