How to set TICK_LENGTH and MAP_FRAME_PEN in pygmt

Hello, I am currently using PyGMT, and I have attempted to use pygmt.config to set MAP_FRAME_PEN and MAP_TICK_LENGTH parameters, but the modifications do not appear in the rendered figure.

Hello @Phd.Yin,

can you please post your code. Without seeing it, it is not possible for use to know, why your change of the GMT defaults is not considered in your figure.

Here is my code .

import pygmt
fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 5], projection='X10c/5c', frame=['WSne+t"My Title"', 'xaf+l"X-axis label"', 'yaf+l"Y-axis label"', 'g1', 'x+l"Longitude"'])

Thanks @Phd.Yin for posting your code, but so far it does not contain pygmt.config.