Document correct comm_mode option
[gromacs.git] / share / html / online / xpm2ps.html
blob9c8e96449688b7836480730c7f56eff17fb818d2
1 <HTML>
2 <HEAD>
3 <TITLE>xpm2ps</TITLE>
4 <LINK rel=stylesheet href="style.css" type="text/css">
5 <BODY text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#990000" alink="#FF0000">
6 <TABLE WIDTH="98%" NOBORDER >
7 <TR><TD WIDTH=400>
8 <TABLE WIDTH=400 NOBORDER>
9 <TD WIDTH=116>
10 <a href="http://www.gromacs.org/"><img SRC="../images/gmxlogo_small.png"BORDER=0 </a></td>
11 <td ALIGN=LEFT VALIGN=TOP WIDTH=280><br><h2>xpm2ps</h2><font size=-1><A HREF="../online.html">Main Table of Contents</A></font><br><br></td>
12 </TABLE></TD><TD WIDTH="*" ALIGN=RIGHT VALIGN=BOTTOM><p><B>VERSION 4.5<br>
13 Thu 26 Aug 2010</B></td></tr></TABLE>
14 <HR>
15 <H3>Description</H3>
16 <p>
17 xpm2ps makes a beautiful color plot of an XPixelMap file.
18 Labels and axis can be displayed, when they are supplied
19 in the correct matrix format.
20 Matrix data may be generated by programs such as <a href="do_dssp.html">do_dssp</a>, <a href="g_rms.html">g_rms</a> or
21 <a href="g_mdmat.html">g_mdmat</a>.<p>
22 Parameters are set in the <tt><a href="m2p.html">m2p</a></tt> file optionally supplied with
23 <tt>-di</tt>. Reasonable defaults are provided. Settings for the y-axis
24 default to those for the x-axis. Font names have a defaulting hierarchy:
25 titlefont -&gt; legendfont; titlefont -&gt; (xfont -&gt; yfont -&gt; ytickfont)
26 -&gt; xtickfont, e.g. setting titlefont sets all fonts, setting xfont
27 sets yfont, ytickfont and xtickfont.<p>
28 When no <tt><a href="m2p.html">m2p</a></tt> file is supplied, many setting are set by
29 command line options. The most important option is <tt>-size</tt>
30 which sets the size of the whole matrix in postscript units.
31 This option can be overridden with the <tt>-bx</tt> and <tt>-by</tt>
32 options (and the corresponding parameters in the <tt><a href="m2p.html">m2p</a></tt> file),
33 which set the size of a single matrix element.<p>
34 With <tt>-f2</tt> a 2nd matrix file can be supplied, both matrix
35 files will be read simultaneously and the upper left half of the
36 first one (<tt>-f</tt>) is plotted together with the lower right
37 half of the second one (<tt>-f2</tt>). The diagonal will contain
38 values from the matrix file selected with <tt>-diag</tt>.
39 Plotting of the diagonal values can be suppressed altogether by
40 setting <tt>-diag</tt> to <tt>none</tt>.
41 In this case, a new color <a href="map.html">map</a> will be generated with
42 a red gradient for negative numbers and a blue for positive.
43 If the color coding and legend labels of both matrices are identical,
44 only one legend will be displayed, else two separate legends are
45 displayed.
46 With <tt>-combine</tt> an alternative operation can be selected
47 to combine the matrices. The output range is automatically set
48 to the actual range of the combined matrix. This can be overridden
49 with <tt>-cmin</tt> and <tt>-cmax</tt>.<p>
50 <tt>-title</tt> can be set to <tt>none</tt> to suppress the title, or to
51 <tt>ylabel</tt> to show the title in the Y-label position (alongside
52 the Y-axis).<p>
53 With the <tt>-rainbow</tt> option dull grey-scale matrices can be turned
54 into attractive color pictures.<p>
55 Merged or rainbowed matrices can be written to an XPixelMap file with
56 the <tt>-<a href="xpm.html">xpm</a></tt> option.
57 <P>
58 <H3>Files</H3>
59 <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
60 <TR><TH>option</TH><TH>filename</TH><TH>type</TH><TH>description</TH></TR>
61 <TR><TD ALIGN=RIGHT> <b><tt>-f</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="xpm.html"> root.xpm</a></tt> </TD><TD> Input </TD><TD> X PixMap compatible matrix file </TD></TR>
62 <TR><TD ALIGN=RIGHT> <b><tt>-f2</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="xpm.html"> root2.xpm</a></tt> </TD><TD> Input, Opt. </TD><TD> X PixMap compatible matrix file </TD></TR>
63 <TR><TD ALIGN=RIGHT> <b><tt>-di</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="m2p.html"> ps.m2p</a></tt> </TD><TD> Input, Opt., Lib. </TD><TD> Input file for mat2ps </TD></TR>
64 <TR><TD ALIGN=RIGHT> <b><tt>-do</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="m2p.html"> out.m2p</a></tt> </TD><TD> Output, Opt. </TD><TD> Input file for mat2ps </TD></TR>
65 <TR><TD ALIGN=RIGHT> <b><tt>-o</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="eps.html"> plot.eps</a></tt> </TD><TD> Output, Opt. </TD><TD> Encapsulated PostScript (tm) file </TD></TR>
66 <TR><TD ALIGN=RIGHT> <b><tt>-xpm</tt></b> </TD><TD ALIGN=RIGHT> <tt><a href="xpm.html"> root.xpm</a></tt> </TD><TD> Output, Opt. </TD><TD> X PixMap compatible matrix file </TD></TR>
67 </TABLE>
68 <P>
69 <H3>Other options</H3>
70 <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
71 <TR><TH>option</TH><TH>type</TH><TH>default</TH><TH>description</TH></TR>
72 <TR><TD ALIGN=RIGHT> <b><tt>-[no]h</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>no </tt> </TD><TD> Print help info and quit </TD></TD>
73 <TR><TD ALIGN=RIGHT> <b><tt>-[no]version</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>no </tt> </TD><TD> Print version info and quit </TD></TD>
74 <TR><TD ALIGN=RIGHT> <b><tt>-nice</tt></b> </TD><TD ALIGN=RIGHT> int </TD><TD ALIGN=RIGHT> <tt>0</tt> </TD><TD> Set the nicelevel </TD></TD>
75 <TR><TD ALIGN=RIGHT> <b><tt>-[no]w</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>no </tt> </TD><TD> View output <a href="xvg.html">xvg</a>, <a href="xpm.html">xpm</a>, <a href="eps.html">eps</a> and <a href="pdb.html">pdb</a> files </TD></TD>
76 <TR><TD ALIGN=RIGHT> <b><tt>-[no]frame</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>yes </tt> </TD><TD> Display frame, ticks, labels, title and legend </TD></TD>
77 <TR><TD ALIGN=RIGHT> <b><tt>-title</tt></b> </TD><TD ALIGN=RIGHT> enum </TD><TD ALIGN=RIGHT> <tt>top</tt> </TD><TD> Show title at: <tt><a href="top.html">top</a></tt>, <tt>once</tt>, <tt>ylabel</tt> or <tt>none</tt> </TD></TD>
78 <TR><TD ALIGN=RIGHT> <b><tt>-[no]yonce</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>no </tt> </TD><TD> Show y-label only once </TD></TD>
79 <TR><TD ALIGN=RIGHT> <b><tt>-legend</tt></b> </TD><TD ALIGN=RIGHT> enum </TD><TD ALIGN=RIGHT> <tt>both</tt> </TD><TD> Show legend: <tt>both</tt>, <tt>first</tt>, <tt>second</tt> or <tt>none</tt> </TD></TD>
80 <TR><TD ALIGN=RIGHT> <b><tt>-diag</tt></b> </TD><TD ALIGN=RIGHT> enum </TD><TD ALIGN=RIGHT> <tt>first</tt> </TD><TD> Diagonal: <tt>first</tt>, <tt>second</tt> or <tt>none</tt> </TD></TD>
81 <TR><TD ALIGN=RIGHT> <b><tt>-size</tt></b> </TD><TD ALIGN=RIGHT> real </TD><TD ALIGN=RIGHT> <tt>400 </tt> </TD><TD> Horizontal size of the matrix in ps units </TD></TD>
82 <TR><TD ALIGN=RIGHT> <b><tt>-bx</tt></b> </TD><TD ALIGN=RIGHT> real </TD><TD ALIGN=RIGHT> <tt>0 </tt> </TD><TD> Element x-size, overrides -size (also y-size when -by is not set) </TD></TD>
83 <TR><TD ALIGN=RIGHT> <b><tt>-by</tt></b> </TD><TD ALIGN=RIGHT> real </TD><TD ALIGN=RIGHT> <tt>0 </tt> </TD><TD> Element y-size </TD></TD>
84 <TR><TD ALIGN=RIGHT> <b><tt>-rainbow</tt></b> </TD><TD ALIGN=RIGHT> enum </TD><TD ALIGN=RIGHT> <tt>no</tt> </TD><TD> Rainbow colors, convert white to: <tt>no</tt>, <tt>blue</tt> or <tt>red</tt> </TD></TD>
85 <TR><TD ALIGN=RIGHT> <b><tt>-gradient</tt></b> </TD><TD ALIGN=RIGHT> vector </TD><TD ALIGN=RIGHT> <tt>0 0 0</tt> </TD><TD> Re-scale colormap to a smooth gradient from white {1,1,1} to {r,g,b} </TD></TD>
86 <TR><TD ALIGN=RIGHT> <b><tt>-skip</tt></b> </TD><TD ALIGN=RIGHT> int </TD><TD ALIGN=RIGHT> <tt>1</tt> </TD><TD> only write out every nr-th row and column </TD></TD>
87 <TR><TD ALIGN=RIGHT> <b><tt>-[no]zeroline</tt></b> </TD><TD ALIGN=RIGHT> gmx_bool </TD><TD ALIGN=RIGHT> <tt>no </tt> </TD><TD> insert line in <a href="xpm.html">xpm</a> matrix where axis label is zero </TD></TD>
88 <TR><TD ALIGN=RIGHT> <b><tt>-legoffset</tt></b> </TD><TD ALIGN=RIGHT> int </TD><TD ALIGN=RIGHT> <tt>0</tt> </TD><TD> Skip first N colors from <a href="xpm.html">xpm</a> file for the legend </TD></TD>
89 <TR><TD ALIGN=RIGHT> <b><tt>-combine</tt></b> </TD><TD ALIGN=RIGHT> enum </TD><TD ALIGN=RIGHT> <tt>halves</tt> </TD><TD> Combine two matrices: <tt>halves</tt>, <tt>add</tt>, <tt>sub</tt>, <tt>mult</tt> or <tt>div</tt> </TD></TD>
90 <TR><TD ALIGN=RIGHT> <b><tt>-cmin</tt></b> </TD><TD ALIGN=RIGHT> real </TD><TD ALIGN=RIGHT> <tt>0 </tt> </TD><TD> Minimum for combination output </TD></TD>
91 <TR><TD ALIGN=RIGHT> <b><tt>-cmax</tt></b> </TD><TD ALIGN=RIGHT> real </TD><TD ALIGN=RIGHT> <tt>0 </tt> </TD><TD> Maximum for combination output </TD></TD>
92 </TABLE>
93 <P>
94 <hr>
95 <div ALIGN=RIGHT>
96 <font size="-1"><a href="http://www.gromacs.org">http://www.gromacs.org</a></font><br>
97 <font size="-1"><a href="mailto:gromacs@gromacs.org">gromacs@gromacs.org</a></font><br>
98 </div>
99 </BODY>