Outline of this page
Following items are shown in this page.
The arranged document of output images by PDF is shown below.
It was made by pasting eps image file to TeX and using TeX function of 'dvipdfm.'
File format conversion from 'eps' to 'png'
'eps' files by GMT were converted to 'png' files using following command of ImageMagick.
A4 portrait type (in case of using -P option)
mogrify -trim -density 300 -bordercolor "#ffffff" -border 10x10 -format png *.eps
A4 landscape type (in case of no-using -P option)
Please note it is necessary to be rotate by 90 degree in conversion.
mogrify -rotate 90 -trim -density 300 -bordercolor "#ffffff" -border 50x50 -format png *.eps
Legend
Although GMT has the command of 'pslegend' to make legend, webmaster can not use it.
So, webmaster has made the awk script to make batch file for drawing legend.
The name of awk script is 'awk_klegend.awk.'
- In this awk script, output filename is '%fig%' which is the variable of MS-DOS.
Please don't forget to set variable like 'set fig=xxx.eps' in the batchfile for drawing.
- Since '-O' option of GMT is written in final row, batch file made by 'awk_klegend.awk' shall be executed at final row in the batch file for drawing.
- Input format of 'awk_legend.awk' is shown below.
01| xlen $ ylen $ strP $ dx $ dy
02| ipt $ scl $ llen
03| strTX[NR] $ strLW[NR] $ strSS[NR] $ strSG[NR] $ strSW[NR]
04| ......... $ ......... $ ......... $ ......... $ .........
05| ......... $ ......... $ ......... $ ......... $ .........
- $ : Separator for input data
- xlen, ylen : Width and height of original graph (width and height in option '-JXwidth/height')
- strP : Location of legend
- bl : bottom left in graph area
- br : bottom right in graph area
- tr : top right in graph area
- tl : top left in graph area
- ot : top right out of graph area
- or : bottom right out of graph area
- dx, dy : Distance from x-axis and y-axis to out line of legend area
- ipt : Font size (pt)
- scl : Ratio of width and height of one font (width/height)
- llen : Length of line in number of character
- strTX[] : Characters for legend
- strLW[] : Line property (characters following '-W' option). If no need, input '---'
- strSS[] : Kind and size of symbol (characters following '-S' option). If no need, input '---'
- strSG[] : Color code for filling symbol (character following '-G' option). If no need, input '---'
- strSW[] : Out line of symbol (character following '-W' option for drawing symbol). If no need, input '---'
Fonts
Color maps
Hachure patterns