PlotGraph
Generates a two dimensional xy plot 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 plotting area is defined by the two axes axisX/Y. An alternative axisY2 on the right hand side can be added. The content of the graph 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, PlotMap, PlotMatrix, PlotSphericalHarmonicsTriangle.
Name | Type | Annotation |
---|---|---|
outputfile | filename | *.png, *.jpg, *.eps, ... |
title | string | |
layer | plotGraphLayer | |
axisX | plotAxis | |
axisY | plotAxis | |
axisY2 | plotAxis | Second y-axis on right hand side |
colorbar | plotColorbar | |
legend | plotLegend | |
options | sequence | further options... |
width | double | in cm |
height | double | in cm |
titleFontSize | uint | in pt |
marginTitle | double | between title and figure [cm] |
drawGridOnTop | boolean | grid lines above all other lines/points |
options | string | |
transparent | boolean | make background transparent |
dpi | uint | use this resolution when rasterizing postscript file |
removeFiles | boolean | remove .gmt and script files |