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

Calculating grid gradient and radiance

Calculating grid gradient and radiance

Calculating grid gradient and radiance
Double Y axes graph

Double Y axes graph

Double Y axes graph
Plotting text

Plotting text

Plotting text
Configuring PyGMT defaults

Configuring PyGMT defaults

Configuring PyGMT defaults
Performing grid histogram equalization

Performing grid histogram equalization

Performing grid histogram equalization
Plotting datetime charts

Plotting datetime charts

Plotting datetime charts
Plotting vectors

Plotting vectors

Plotting vectors
Polar

Polar

Polar