# Error to generate xpm2ps output

**URL:** <https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413>\
**Category:** User discussions\
**Created:** [July 2, 2020, 3:13am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413 "2020-07-02T03:13:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syahr](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Syahr](https://gromacs.bioexcel.eu/u/Syahr)\
**Post date:** [July 2, 2020, 3:13am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/1 "2020-07-02T03:13:06Z")

</div>

GROMACS version: 2020  
GROMACS modification: No

Hi All,

I have an issue to visualize xpm data when I try to convert to eps format. The input format for xpm2ps is from gmx densmap output. here is the details,

gmx xpm2ps -f densmap\_5u9d-WT\_100.xpm -o densmap\_5u9d-WT\_100.eps -rainbow red  
:-) GROMACS - gmx xpm2ps, 2020 (-:

```
                        GROMACS is written by:
 Emile Apol Rossen Apostolov Paul Bauer Herman J.C. Berendsen
Par Bjelkmar Christian Blau Viacheslav Bolnykh Kevin Boyd    

```

Aldert van Buuren Rudi van Drunen Anton Feenstra Alan Gray  
Gerrit Groenhof Anca Hamuraru Vincent Hindriksen M. Eric Irrgang  
Aleksei Iupinov Christoph Junghans Joe Jordan Dimitrios Karkoulis  
Peter Kasson Jiri Kraus Carsten Kutzner Per Larsson  
Justin A. Lemkul Viveca Lindahl Magnus Lundborg Erik Marklund  
Pascal Merz Pieter Meulenhoff Teemu Murtola Szilard Pall  
Sander Pronk Roland Schulz Michael Shirts Alexey Shvetsov  
Alfons Sijbers Peter Tieleman Jon Vincent Teemu Virolainen  
Christian Wennberg Maarten Wolf Artem Zhmurov  
and the project leaders:  
Mark Abraham, Berk Hess, Erik Lindahl, and David van der Spoel

Copyright © 1991-2000, University of Groningen, The Netherlands.  
Copyright © 2001-2019, The GROMACS development team at  
Uppsala University, Stockholm University and  
the Royal Institute of Technology, Sweden.  
check out [http://www.gromacs.org](http://www.gromacs.org) for more information.

GROMACS is free software; you can redistribute it and/or modify it  
under the terms of the GNU Lesser General Public License  
as published by the Free Software Foundation; either version 2.1  
of the License, or (at your option) any later version.

GROMACS: gmx xpm2ps, version 2020  
Executable: /usr/local/gromacs/bin/gmx  
Data prefix: /usr/local/gromacs  
Working dir: /home/crystalworkstation02/Syahrul/MD\_simulation/100ns/WT/runWT\_1  
Command line:  
gmx xpm2ps -f densmap\_5u9d-WT\_100.xpm -o densmap\_5u9d-WT\_100.eps -rainbow red

* * *

Program: gmx xpm2ps, version 2020  
Source file: src/gromacs/fileio/matio.cpp (line 297)

Input error or input inconsistency:  
Invalid XPixMap

## For more information and tips for troubleshooting, please check the GROMACS website at [http://www.gromacs.org/Documentation/Errors](http://www.gromacs.org/Documentation/Errors)

What should I do? Your help is highly appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![Syahr](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Syahr](https://gromacs.bioexcel.eu/u/Syahr)\
**Post date:** [July 14, 2020, 5:32am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/2 "2020-07-14T05:32:55Z")

</div>

> [@Syahr](#):
>
> Input error or input inconsistency:  
> Invalid XPixMap

What does this mean? It supposed to be correct xpm file generated by gromacs itself. any clues?

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [July 14, 2020, 3:25pm UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/3 "2020-07-14T15:25:21Z")

</div>

This is a known bug and has been described in this forum within the last few days (please search before posting). Upgrade to 2020.3 and try again.

---

<div class="post-metadata">

**Author:** ![Syahr](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Syahr](https://gromacs.bioexcel.eu/u/Syahr)\
**Post date:** [July 15, 2020, 3:57am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/4 "2020-07-15T03:57:37Z")

</div>

Thank you for the info.

Now I have upgraded to gromacs 2020.3. Yes the conversion is working.

Unfortunately, the graph scales (x- and y-axis) generated are badly overlapping (unreadable) refer attached.

 ![Screenshot from 2020-07-15 11-54-42](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/90fabb4fee3ad5d02e9944a648c4ea55d34412d5.png)

How can I fix this? your help is much appreciated. thank you.

---

<div class="post-metadata">

**Author:** ![Masrul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/masrul/32/234_2.png) [@Masrul](https://gromacs.bioexcel.eu/u/Masrul)\
**Post date:** [July 15, 2020, 4:37am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/5 "2020-07-15T04:37:37Z")

</div>

There is a template file for conversion at /path-to-gromacs/share/top/ps.m2p. You can provide template file with **-di** option. Copy that file to current directory and adjust x-major/x-minor and y-major/y-minor, then supply with -di option while invoking **gmx xpm2ps**.

---

<div class="post-metadata">

**Author:** ![umar](https://avatars.discourse-cdn.com/v4/letter/u/59ef9b/32.png) [@umar](https://gromacs.bioexcel.eu/u/umar)\
**Post date:** [October 12, 2023, 7:46am UTC](https://gromacs.bioexcel.eu/t/error-to-generate-xpm2ps-output/413/6 "2023-10-12T07:46:33Z")

</div>

Hello  
Sir, can you explain a little deep on adjusting the axes?  
Thank You.
