g_xpm2ps_d (1) - Linux Manuals
g_xpm2ps_d: convert XPM (XPixelMap) file to postscript
NAME
xpm2ps - convert XPM (XPixelMap) file to postscriptSYNOPSIS
xpm2ps -f root.xpm -f2 root2.xpm -di ps.m2p -do out.m2p -o plot.eps -xpm root.xpm -[no]h -nice int -[no]w -[no]frame -title enum -[no]yonce -legend enum -diag enum -size real -bx real -by real -rainbow enum -gradient vector -skip int -[no]zeroline -legoffset int -combine enum -cmin real -cmax realDESCRIPTION
xpm2ps makes a beautiful color plot of an XPixelMap file. Labels and axis can be displayed, when they are supplied in the correct matrix format. Matrix data may be generated by programs such as do_dssp, g_rms or g_mdmat.
Parameters are set in the m2p file optionally supplied with -di. Reasonable defaults are provided. Settings for the y-axis default to those for the x-axis. Font names have a defaulting hierarchy: titlefont - legendfont; titlefont - (xfont - yfont - ytickfont) - xtickfont, e.g. setting titlefont sets all fonts, setting xfont sets yfont, ytickfont and xtickfont.
When no m2p file is supplied, many setting are set by command line options. The most important option is -size which sets the size of the whole matrix in postscript units. This option can be overridden with the -bx and -by options (and the corresponding parameters in the m2p file), which set the size of a single matrix element.
With -f2 a 2nd matrix file can be supplied, both matrix files will be read simultaneously and the upper left half of the first one ( -f) is plotted together with the lower right half of the second one ( -f2). The diagonal will contain values from the matrix file selected with -diag. Plotting of the diagonal values can be suppressed altogether by setting -diag to none. In this case, a new color map will be generated with a red gradient for negative numbers and a blue for positive. If the color coding and legend labels of both matrices are identical, only one legend will be displayed, else two separate legends are displayed. With -combine an alternative operation can be selected to combine the matrices. The output range is automatically set to the actual range of the combined matrix. This can be overridden with -cmin and -cmax.
-title can be set to none to suppress the title, or to ylabel to show the title in the Y-label position (alongside the Y-axis).
With the -rainbow option dull grey-scale matrices can be turned into attractive color pictures.
Merged or rainbowed matrices can be written to an XPixelMap file with the -xpm option.
FILES
-f root.xpm Input
-f2 root2.xpm
Input, Opt.
-di ps.m2p
Input, Opt., Lib.
-do out.m2p
Output, Opt.
-o plot.eps
Output, Opt.
-xpm root.xpm
Output, Opt.
-nice int 0
-[no]wno
-[no]frameyes
-title enum top
-[no]yonceno
-legend enum both
-diag enum first
-size real 400
-bx real 0
-by real 0
-rainbow enum no
-gradient vector 0 0 0
-skip int 1
-[no]zerolineno
-legoffset int 0
-combine enum halves
-cmin real 0
OTHER OPTIONS
-[no]hno