# Gmtinfo - extending the region

**URL:** <https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930>\
**Category:** Q&A\
**Created:** [May 12, 2023, 10:32pm UTC](https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930 "2023-05-12T22:32:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaltekruse](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jaltekruse/32/1607_2.png) [@jaltekruse](https://forum.generic-mapping-tools.org/u/jaltekruse)\
**Post date:** [May 12, 2023, 10:32pm UTC](https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930/1 "2023-05-12T22:32:18Z")

</div>

I’d like to use `gmt info -I...+e|r|R` to extend the region of a data table so that the data isn’t plotted right up to the edge of the map. I can’t seem to make `+e|r|R` have any effect and am a bit confused by the [docs](https://docs.generic-mapping-tools.org/6.4/gmtinfo.html). I end up having to use awk to manually extend the bounds. I don’t think I understand the difference between `+r` and `+R`, and `+e` doesn’t work like I expect. Am I using these options incorrectly?

```auto
cat << EOD >> data.gmt
-125,37.6
-111.1,49.2
EOD
# Target extended region: -R-125.25/-110.75/37.25/49.75

# exact extent
gmt info data.gmt -Ie
# -R-125/-111.1/37.6/49.2 <- OK

# round to nearest 0.25
gmt info data.gmt -I0.25/0.25
# -R-125/-111/37.5/49.25 <- OK

# +r|R|e options
gmt info data.gmt -I0.25/0.25+r0.25/0.25 # is +r0.25/0.25 redundant here?
gmt info data.gmt -I0.25/0.25+R0.25/0.25
gmt info data.gmt -I0.25/0.25+e0.25/0.25
# all return -R-125/-111/37.5/49.25

```

Thanks,  
Jason

I’m using GMT v6.4.0 installed on macOS via conda.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 13, 2023, 7:14am UTC](https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930/2 "2023-05-13T07:14:49Z")

</div>

There is a bug in the **-I** parsing code. I will fix it in a few hours. Thanks for pointing it out.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 13, 2023, 10:17am UTC](https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930/3 "2023-05-13T10:17:14Z")

</div>

Pull [request](https://github.com/GenericMappingTools/gmt/pull/7460) submitted for review - you could try it if you have time.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 13, 2023, 12:42pm UTC](https://forum.generic-mapping-tools.org/t/gmtinfo-extending-the-region/3930/4 "2023-05-13T12:42:15Z")

</div>

Bug fixed approved and merged into master.
