.. _gmx xpm2ps: gmx xpm2ps ========== Synopsis -------- .. parsed-literal:: gmx xpm2ps [:strong:`-f` :emphasis:`[<.xpm>]`] [:strong:`-f2` :emphasis:`[<.xpm>]`] [:strong:`-di` :emphasis:`[<.m2p>]`] [:strong:`-do` :emphasis:`[<.m2p>]`] [:strong:`-o` :emphasis:`[<.eps>]`] [:strong:`-xpm` :emphasis:`[<.xpm>]`] [:strong:`-[no]w`] [:strong:`-[no]frame`] [:strong:`-title` :emphasis:``] [:strong:`-[no]yonce`] [:strong:`-legend` :emphasis:``] [:strong:`-diag` :emphasis:``] [:strong:`-size` :emphasis:``] [:strong:`-bx` :emphasis:``] [:strong:`-by` :emphasis:``] [:strong:`-rainbow` :emphasis:``] [:strong:`-gradient` :emphasis:``] [:strong:`-skip` :emphasis:``] [:strong:`-[no]zeroline`] [:strong:`-legoffset` :emphasis:``] [:strong:`-combine` :emphasis:``] [:strong:`-cmin` :emphasis:``] [:strong:`-cmax` :emphasis:``] Description ----------- ``gmx 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 :doc:`gmx rms ` or :doc:`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. 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. 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 :ref:`.xvg `, :ref:`.xpm `, :ref:`.eps ` and :ref:`.pdb ` files ``-[no]frame`` (yes) Display frame, ticks, labels, title and legend ``-title`` (top) Show title at: top, once, ylabel, none ``-[no]yonce`` (no) Show y-label only once ``-legend`` (both) Show legend: both, first, second, none ``-diag`` (first) Diagonal: first, second, none ``-size`` (400) Horizontal size of the matrix in ps units ``-bx`` (0) Element x-size, overrides ``-size`` (also y-size when ``-by`` is not set) ``-by`` (0) Element y-size ``-rainbow`` (no) Rainbow colors, convert white to: no, blue, red ``-gradient`` (0 0 0) Re-scale colormap to a smooth gradient from white {1,1,1} to {r,g,b} ``-skip`` (1) only write out every nr-th row and column ``-[no]zeroline`` (no) insert line in :ref:`.xpm ` matrix where axis label is zero ``-legoffset`` (0) Skip first N colors from :ref:`.xpm ` file for the legend ``-combine`` (halves) Combine two matrices: halves, add, sub, mult, div ``-cmin`` (0) Minimum for combination output ``-cmax`` (0) Maximum for combination output .. only:: man See also -------- :manpage:`gmx(1)` More information about |Gromacs| is available at .