imageplt provides a simple way to plot a greyscale image using plt(1). The required arguments, nrows and ncols, specify the numbers of rows and columns in the image. The input file (or the standard input, if no input file is specified) contains only the grey levels for each pixel (0 = white, 1 = black). Each entry is an ASCII-coded decimal floating point number, separated from adjacent entries by whitespace (one or more spaces, tabs, or newlines). The first nrows entries are the grey levels for column 0 of the image, botttom to top, and each successive column from left to right of the image follows. If nrows is small, it may be convenient to arrange the image file in columns and rows corresponding to those of the image, but this is not necessary. In no case should the length of a line of input exceed 50000 bytes (defined as MAXLEN in the source).
The output of imageplt is text in three columns, to be plotted using the -pc option of plt, as in: