# How to control the frame interval in PyGMT

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-control-the-frame-interval-in-pygmt/2222>\
**Category:** PyGMT Q&A\
**Created:** [October 25, 2021, 11:23am UTC](https://forum.generic-mapping-tools.org/t/how-to-control-the-frame-interval-in-pygmt/2222 "2021-10-25T11:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yujiaxin666](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yujiaxin666/32/1687_2.png) [@yujiaxin666](https://forum.generic-mapping-tools.org/u/yujiaxin666)\
**Post date:** [October 25, 2021, 11:23am UTC](https://forum.generic-mapping-tools.org/t/how-to-control-the-frame-interval-in-pygmt/2222/1 "2021-10-25T11:23:24Z")

</div>

![map](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/7/7685fd096c68f5e50ae9c3d96816bcd5be938981.png)

Hi, I am new to PyGMT, I create a `gridimage` as shown above, the relevant code is

### 

`fig.grdimage(grid=grid_subset,projection="Cyl_stere/0/60/12c", region=region,frame='a')`

### 

I have two questions:

1. How can I increase the x-axis frame interval (now it’s too dense), the x-axis tick frequency is ok

2. How to change the y axis tick frequency? Now I have [50, 60, 70], but I want to have [50,55,60,65,70]

Any suggestion is welcome…

Best wishes from Norway

---

<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:** [October 25, 2021, 3:24pm UTC](https://forum.generic-mapping-tools.org/t/how-to-control-the-frame-interval-in-pygmt/2222/2 "2021-10-25T15:24:38Z")

</div>

Please see the description of [`-B` option in the cookbook](https://docs.generic-mapping-tools.org/latest/cookbook/options.html#option-b).
