# Gmx distance

**URL:** https://gromacs.bioexcel.eu/t/gmx-distance/10472
**Category:** User discussions
**Created:** [November 1, 2024, 6:32pm UTC](https://gromacs.bioexcel.eu/t/gmx-distance/10472 "2024-11-01T18:32:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)
#### Post date: [November 1, 2024, 6:32pm UTC](https://gromacs.bioexcel.eu/t/gmx-distance/10472/1 "2024-11-01T18:32:30Z")

</div>

GROMACS version: 2021.4-2  
GROMACS modification: No  
Hello, I have a question regarding gmx distance command. When I run the gmx distance -s md.tpr -f md.xtc -select “selected atoms to perform” -oh d1.xvg -len 0.5, I get a histogram, and the x-axis values are from 0 to 1. How do I increase the x-axis values, for example 0 to 5?

---

<div class="post-metadata">

### Author: ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)
#### Post date: [November 3, 2024, 10:12am UTC](https://gromacs.bioexcel.eu/t/gmx-distance/10472/2 "2024-11-03T10:12:39Z")

</div>

Try `-len 2.5`. You can also change the `-tol` option, but I think it’s easier to modify `-len`.

---

<div class="post-metadata">

### Author: ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)
#### Post date: [November 8, 2024, 8:19pm UTC](https://gromacs.bioexcel.eu/t/gmx-distance/10472/3 "2024-11-08T20:19:53Z")

</div>

I tried adjusting the -len option. I adjusted the current value, and it fixed my problem. Thank you.
