# How to change the frame like this

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-change-the-frame-like-this/2262>\
**Category:** PyGMT Q&A\
**Created:** [November 5, 2021, 3:23am UTC](https://forum.generic-mapping-tools.org/t/how-to-change-the-frame-like-this/2262 "2021-11-05T03:23:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phd.Yin](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/phd.yin/32/1256_2.png) [@Phd.Yin](https://forum.generic-mapping-tools.org/u/Phd.Yin)\
**Post date:** [November 5, 2021, 3:23am UTC](https://forum.generic-mapping-tools.org/t/how-to-change-the-frame-like-this/2262/1 "2021-11-05T03:23:41Z")

</div>

Hello. My code is like this:

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/c/cc9357f1f996643c7fb2555a3a69173f9d9dfd1b.png)  
and plot is ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/8/882d429548d5c493d51530ffaf1c8f7d0e2b582a.png)  
I want to remove the rail frame，and plot the frame like this:  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/8/8c341d97f232f9699aeaf8f7901ff6ea141dabc0.png)  
I have tried a lot,please give some advices.Thanks.

---

<div class="post-metadata">

**Author:** ![mgrund](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mgrund/32/139_2.png) [@mgrund](https://forum.generic-mapping-tools.org/u/mgrund)\
**Post date:** [November 5, 2021, 8:06am UTC](https://forum.generic-mapping-tools.org/t/how-to-change-the-frame-like-this/2262/2 "2021-11-05T08:06:36Z")

</div>

This can be done via `pygmt.config()`:

```auto
import pygmt
fig = pygmt.Figure()
pygmt.config(MAP_FRAME_TYPE = 'plain')
...

```

The default frame type is `fancy`.

---

<div class="post-metadata">

**Author:** ![Phd.Yin](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/phd.yin/32/1256_2.png) [@Phd.Yin](https://forum.generic-mapping-tools.org/u/Phd.Yin)\
**Post date:** [November 6, 2021, 1:06am UTC](https://forum.generic-mapping-tools.org/t/how-to-change-the-frame-like-this/2262/3 "2021-11-06T01:06:31Z")

</div>

Thanks, it worked.
