pygmt.clib.Session.call_module

Session.call_module(self, module, args)[source]

Call a GMT module with the given arguments.

Makes a call to GMT_Call_Module from the C API using mode GMT_MODULE_CMD (arguments passed as a single string).

Most interactions with the C API are done through this function.

Parameters:
module : str

Module name ('coast', 'basemap', etc).

args : str

String with the command line arguments that will be passed to the module (for example, '-R0/5/0/10 -JM').

Raises:
GMTCLibError

If the returned status code of the function is non-zero.