matrix2eps -h
to get the updated features.
gcc matrix2eps.c -lm -o matrix2eps
Usage: at the command line just type "matrix2eps datafile", and it
will create datafile.eps. At present the datafile has to be a square
matrix with n even (not necessarily a power of 2). The program simply
reads in the first n2 numbers assuming they are n rows of n
columns, so extra carriage returns or other white space doesn't matter
(so data set up for DynamicLattice in -matrix mode works perfectly).
The output is just a 2-state (or "spin hardenend") plot: all lattice points with a positive number are plotted in one color and those with a negative number in the other color. The default colors right now are black and white. You can easily change these by editing the postscript file: the 9th line starts with an "/S {..." and ends with "0 0 0 setrgbcolor". Changing those three numbers, which range from 0 to 1, changes the color of state 1 (which is currently black). Then the 12th line, starting "/T {..." has the rgb setting for state 2 (currently 1 1 1, or white). These .eps files are much more compact than what you can make with a screen grab off DynamicLattice, for example, and they also compress well. Pretty handy.