pygmt.config

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

Set GMT defaults globally or locally.

Change GMT defaults globally:

pygmt.config(PARAMETER=value)

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

with pygmt.config(PARAMETER=value):
    ...

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

Methods Summary

Examples using pygmt.config