pyGmt module

pyGmt: A simple python wrapper for the Generic Mapping Tools (GMT).

class pyGmt.Gmt(scr='./rungmt.sh')[source]
cmd(cmd, arg)[source]

gmt commands

comment(str)[source]

comment here in the script

execute()[source]

execute the generated shell script

saveas(newfilename)[source]

save ‘rungmt.sh’ as ...

set(arg, val)[source]

Set default GMT parameters.

set('FONT_TITLE', '10p,Helvetica,black')
arg : name,
e.g., ‘FONT_TITLE’
val : value
e.g., ‘10p,Helvetica,black’
shell(cmd)[source]

shell command, e.g, “cat file.xy | awk ‘{print $1, $2}’ “