# How to increase the frame interval in pygmt?

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-increase-the-frame-interval-in-pygmt/1148>\
**Category:** PyGMT Q&A\
**Created:** [December 22, 2020, 8:16pm UTC](https://forum.generic-mapping-tools.org/t/how-to-increase-the-frame-interval-in-pygmt/1148 "2020-12-22T20:16:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmetanildindar](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ahmetanildindar/32/119_2.png) [@ahmetanildindar](https://forum.generic-mapping-tools.org/u/ahmetanildindar)\
**Post date:** [December 22, 2020, 8:16pm UTC](https://forum.generic-mapping-tools.org/t/how-to-increase-the-frame-interval-in-pygmt/1148/1 "2020-12-22T20:16:42Z")

</div>

Dear all,  
I wonder whether it is possible to increase the interval of the ticks of the frame in pygmt? It is well documented for GMT but I’ve failed converting the command to pygmt.

The part of the code is below and the part of the map is down there.

```
#Map generation with PYGMT
KWARGS = dict( grid='@earth_relief_03s' , region= region , projection='M10i', cmap='terra', frame="af" )

fig = pygmt.Figure()

#plot topography
fig.grdimage(shading=True, **KWARGS) 

```

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/2c0818ef6e3330b02f2ed8974ab8b8625780b383.png)

I’m confident there should be something included to _frame =“af”_ but no idea what it would be.

Any suggestion is welcome…

Best wishes from Istanbul

++Ahmet

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [December 22, 2020, 8:25pm UTC](https://forum.generic-mapping-tools.org/t/how-to-increase-the-frame-interval-in-pygmt/1148/2 "2020-12-22T20:25:24Z")

</div>

It has the same/similar syntax as GMT command lines.

You can use arguments like `frame="a0.5f"` to adjust the intervals.

---

<div class="post-metadata">

**Author:** ![ahmetanildindar](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ahmetanildindar/32/119_2.png) [@ahmetanildindar](https://forum.generic-mapping-tools.org/u/ahmetanildindar)\
**Post date:** [December 22, 2020, 8:42pm UTC](https://forum.generic-mapping-tools.org/t/how-to-increase-the-frame-interval-in-pygmt/1148/3 "2020-12-22T20:42:57Z")

</div>

Dear @seisman,  
Your suggestion worked 🙂

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/e7bef69aeeb4351b3bcab61059ea1114f02e1c34.png)

Thank you very much.

++Ahmet
