Pygmt.config

Hi, I am using pygmt 0.9. But whenever I am trying to use any parameters from pygmt.config it is showing too many warnings. Why it is happening?

import pygmt
fig = pygmt.Figure()
pygmt.config(FONT = ‘18p’)

and it showing these many warnings and error as well.

gmt [WARNING]: Length o not supported - revert to default unit [point]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Representation of font size not recognised. Using default.
gmt [ERROR]: Unrecognized keyword FONT_SUBTITLE.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [ERROR]: MAP_FRAME_AXES given illegal value (auto)!
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [ERROR]: MAP_FRAME_WIDTH given illegal value (autc)!
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
gmt [WARNING]: Length o not supported - revert to default unit [cm]
gmt [WARNING]: aut not a valid number and may not be decoded properly.
3 GMT Defaults conversion errors in file /home/lalit/.gmt/sessions/gmt_session.393563/gmt.conf.2!

And it is printing output like this:

[3]: pygmt.src.config.config at 0x7fc53c24be80>

Hello @lalit.seismo,

it looks like that there is something wrong in your config file at “/home/lalit/.gmt/sessions/gmt_session.393563/gmt.conf.2”. For the parameters FONT_SUBTITLE, MAP_FRAME_AXES, and MAP_FRAME_WIDTH no valid numbers or units seem to be given.

It’s also likely that you have an very old GMT version installed and PyGMT used that one instead of the one installed by anaconda. Or, you may have a “gmt.conf” file in your home directory or current directoy.

Thank you. I’ll take a look at this.