GMX-XPM2PS(1)
β¨ GMX-XPM2PS π
okay bestie, gather round, because this is the gmx-xpm2ps page from the GROMACS manual and it is literally about turning your ugly little matrices into pretty pictures. no cap.
πΈ NAME πΈ
gmx-xpm2ps β Convert XPM (XPixelMap) matrices to postscript or XPM
π¦ SYNOPSIS π¦
gmx xpm2ps [-f [<.xpm>]] [-f2 [<.xpm>]] [-di [<.m2p>]] [-do [<.m2p>]]
[-o [<.eps>]] [-xpm [<.xpm>]] [-[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 <real>]
π DESCRIPTION π
gmx xpm2ps makes a beautiful color plot of an XPixelMap file. iconic behavior, honestly. π
Labels and axis can be displayed, when they are supplied in the correct matrix format. Matrix data may be generated by programs such as gmx rms or gmx 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. it's giving cascading stylesheets but make it fonts, and honestly? we love her for it. π
When no .m2p file is supplied, many settings are taken from 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 second 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 grayscale matrices can be turned into attractive color pictures. glow up of the century, fr fr. π
Merged or rainbowed matrices can be written to an XPixelMap file with the -xpm option.
β¨ OPTIONS β¨
π§ Options to specify input files:
-f [<.xpm>](root.xpm) β X PixMap compatible matrix file-f2 [<.xpm>](root2.xpm) (Optional) β X PixMap compatible matrix file-di [<.m2p>](ps.m2p) (Optional, Library) β Input file for mat2ps
π Options to specify output files:
-do [<.m2p>](out.m2p) (Optional) β Input file for mat2ps-o [<.eps>](plot.eps) (Optional) β Encapsulated PostScript (tm) file-xpm [<.xpm>](root.xpm) (Optional) β X PixMap compatible matrix file
πΈ Other options:
-[no]w(no) β View output.xvg,.xpm,.epsand.pdbfiles-[no]frame(yes) β Display frame, ticks, labels, title and legend-title <enum>(top) β Show title at:top,once,ylabel,none-[no]yonce(no) β Show y-label only once-legend <enum>(both) β Show legend:both,first,second,none-diag <enum>(first) β Diagonal:first,second,none-size <real>(400) β Horizontal size of the matrix in ps units-bx <real>(0) β Element x-size, overrides-size(also y-size when-byis not set)-by <real>(0) β Element y-size-rainbow <enum>(no) β Rainbow colors, convert white to:no,blue,red-gradient <vector>(0 0 0) β Re-scale colormap to a smooth gradient from white{1,1,1}to{r,g,b}-skip <int>(1) β only write out every nr-th row and column-[no]zeroline(no) β insert line in.xpmmatrix where axis label is zero-legoffset <int>(0) β Skip first N colors from.xpmfile for the legend-combine <enum>(halves) β Combine two matrices:halves,add,sub,mult,div-cmin <real>(0) β Minimum for combination output-cmax <real>(0) β Maximum for combination output
π SEE ALSO π
More information about GROMACS is available at <http://www.gromacs.org/>. π«Ά
π COPYRIGHT π
2026, GROMACS development team
ok that's the whole page bestie, go make some pretty plots πβ¨
and for the little sign-off moment: this was version 2026.4, dated Oct 02, 2026, straight from the GROMACS manual set. periodt. π π
π¦ where this page comes from
- nixpkgs unstable: gromacs 2026.4
- ubuntu stonking: gromacs-data 2026.4-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms