next up previous contents index
Next: See Also Up: imageplt Previous: Synopsis

Description

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).

Options include:

-n
Generate a negative image (1 = white, 0 = black).
-x xmin xmax
Specify the range of the x-coordinates (default: xmin=0, xmax=nrows-1).
-y ymin ymax
Specify the range of the y-coordinates (default: ymin=0, ymax=ncols-1).

The output of imageplt is text in three columns, to be plotted using the -pc option of plt, as in:

imageplt -d 10 10 foo $\vert$ plt 0 1 2 -pc


next up previous contents index
Next: See Also Up: imageplt Previous: Synopsis
George B. Moody (george@mit.edu)
2005-04-26