PlotMap

Generates a map using the GMT Generic Mapping Tools (https://www.generic-mapping-tools.org). A variety of image file formats are supported (e.g. png, jpg, eps) determined by the extension of outputfile.

The base map is defined by a projection of an ellipsoid (R, inverseFlattening). The content of the map itself is defined by one or more layers.

The plot programs create a temporary directory in the path of outputfile, writes all needed data into it, generates a batch/shell script with the GMT commands, execute it, and remove the temporary directory. With setting options:removeFiles=false the last step is skipped and it is possible to adjust the plot manually to specific publication needs. Individual GMT settings are adjusted with options:options="FORMAT=value", see https://docs.generic-mapping-tools.org/latest/gmt.conf.html.

See also: PlotDegreeAmplitudes, PlotGraph, PlotMatrix, PlotSphericalHarmonicsTriangle.

plotMap
Figure: A Robinson projection with griddedData (geoid), coast, polygon (amazon), and points (IGS stations) layer.

NameTypeAnnotation
outputfile
filename*.png, *.jpg, *.eps, ...
title
string
statisticInfos
boolean
layer
plotMapLayer
R
doublereference radius for ellipsoidal coordinates on output
inverseFlattening
doublereference flattening for ellipsoidal coordinates on output, 0: spherical coordinates
minLambda
anglemin. longitude (default: compute from input data)
maxLambda
anglemax. longitude (default: compute from input data)
minPhi
anglemin. latitude (default: compute from input data)
maxPhi
anglemax. latitude (default: compute from input data)
majorTickSpacing
angleboundary annotation
minorTickSpacing
angleframe tick spacing
gridLineSpacing
anglegridline spacing
colorbar
plotColorbar
projection
plotMapProjectionmap projection
options
sequencefurther options...
width
doublein cm
height
doublein cm
titleFontSize
uintin pt
marginTitle
doublebetween title and figure [cm]
drawGridOnTop
booleangrid lines above all other lines/points
options
string
transparent
booleanmake background transparent
dpi
uintuse this resolution when rasterizing postscript file
removeFiles
booleanremove .gmt and script files