pygmt.config

class pygmt.config(**kwargs)[source]

Set GMT defaults globally or locally.

Change GMT defaults globally:

pygmt.config(PARAMETER=value)
Copy to clipboard

Change GMT defaults locally by using it as a context manager:

with pygmt.config(PARAMETER=value):
    ...
Copy to clipboard

Full GMT defaults list at https://docs.generic-mapping-tools.org/latest/gmt.conf.html

Methods Summary