How to change the frame like this

Hello. My code is like this:

and plot is image
I want to remove the rail frame,and plot the frame like this:

I have tried a lot,please give some advices.Thanks.

This can be done via pygmt.config():

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

The default frame type is fancy.

Thanks, it worked.