1 <title>xpm file format
</title>
2 <LINK rel=stylesheet
href=
"style.css" type=
"text/css">
3 <BODY text=
"#000000" bgcolor=
"#FFFFFF" link=
"#0000EF" vlink=
"#650065" alink=
"#FF0000">
4 <h2>xpm file format
</h2>
5 <CENTER><TABLE BORDER=
0 CELLSPACING=
0 CELLPADDING=
0 COLS=
2 WIDTH=
"98%">
7 <TD><font size=-
1><A HREF=
"../online.html">Main Table of Contents
</A></font></TD>
8 <TD ALIGN=RIGHT
><B>VERSION
4.0</B></TR>
9 <TR><TD><font size=-
1><A HREF=
"http://www.gromacs.org">GROMACS homepage
</A></font></TD>
10 <TD ALIGN=RIGHT
><B>Sun
18 Jan
2009</B></TR></TABLE></CENTER><HR>
12 The GROMACS xpm file format is compatible with the XPixMap format
13 and is used for storing matrix data.
14 Thus GROMACS xpm files can be viewed directly with programs like XV.
15 The first matrix data line in an xpm file corresponds to the last matrix
17 In addition to the XPixMap format, GROMACS xpm files may contain
18 extra fields. The information in these fields is used when converting
19 an xpm file to EPS with
20 <A HREF=
"xpm2ps.html">xpm2ps
</a>.
21 The optional extra field are:
24 Before the
<tt>gv_xpm
</tt> declaration:
<tt>title
</tt>,
<tt>legend
</tt>,
25 <tt>x-label
</tt>,
<tt>y-label
</tt> and
<tt>type
</tt>,
26 all followed by a string.
27 The
<tt>legend
</tt> field determines the legend title.
28 The
<tt>type
</tt> field must be followed by
<tt>"continuous"</tt> or
30 this determines which type of legend will be drawn in an EPS file,
31 the default type is continuous.
33 The xpm colormap entries may be followed by a string, which is a label for
36 Between the colormap and the matrix data, the fields
37 <tt>x-axis
</tt> and/or
<tt>y-axis
</tt>
38 may be present followed by the tick-marks for that axis.
40 The example GROMACS xpm file below contains all the extra fields.
41 The C-comment delimiters and the colon in the extra fields are optional.
44 /* This matrix is generated by g_rms. */
45 /* title:
"Backbone RMSD matrix" */
46 /* legend:
"RMSD (nm)" */
47 /* x-label:
"Time (ps)" */
48 /* y-label:
"Time (ps)" */
49 /* type:
"Continuous" */
50 static char * gv_xpm[] = {
52 "A c #FFFFFF " /*
"0" */,
53 "B c #CCCCCC " /*
"0.0399" */,
54 "C c #999999 " /*
"0.0798" */,
55 "D c #666666 " /*
"0.12" */,
56 "E c #333333 " /*
"0.16" */,
57 "F c #000000 " /*
"0.2" */,
58 /* x-axis:
0 40 80 120 160 200 240 280 320 360 400 440 480 */
59 /* y-axis:
0 40 80 120 160 200 240 280 320 360 400 440 480 */
76 <font size=
"-1"><a href=
"http://www.gromacs.org">http://www.gromacs.org
</a></font><br>