Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://xray.sai.msu.ru/~ivan/gmt/man/pstext.html
Дата изменения: Fri Mar 19 17:20:29 1999 Дата индексирования: Tue Oct 2 06:57:18 2012 Кодировка: |
pstext - To plot textstrings on maps
pstext textfile -Jparameters -Rwest/east/south/north[r] [ -Btickinfo ] [ -Cdx/dy ] -Ddx/dy ] [ -Eazimuth/elevation ] [ -Gred/green/blue ] [ -H[nrec] ] [ -K ] [ -L ] [ -N ] [ -O ] [ -P ] [ -Spen ] [ -U[/dx/dy/][label] ] [ -V ] [ -W[red/green/blue][o[pen]] ] [ -Xx-shift ] [ -Yy-shift ] [ -Zzlevel ] [ -ccopies ] [ -: ]
pstext plots textstrings of variable size, font type, and orientation. Various map projections are provided, with the option to draw and annotate the map boundaries. PostScript code is written to standard output. Greek characters, subscript, superscript, and small caps are supported as follows: The sequence @~ toggles between the selected font and Greek (Symbol). @%no% sets the font to no; @%% resets the font to the starting font, @- toggles subscripts on/off, @+ toggles superscript on/off, and @# toggles small caps on/off. @@ prints the @ sign. @e, @o, @a, @E, @O, @A give the accented Scandinavian characters. Composite characters (overstrike) may be indicated with the @!<char1><char2> sequence, which will print the two characters on top of each other. To learn the octal codes for symbols not available on the keyboard and some accented European characters, see Section 4.15 and Appendix F in the GMT Technical Reference and Cookbook. Note that WANT_EURO_FONT must be set to TRUE in your .gmtdefaults file in order to use the accented characters. Using the -W option, a colored rectangle underlying the text may be plotted (Does not work for strings with sub/super scripts, symbols, or composite characters). textfile This file contains 1 or more records with (x, y, size, angle, fontno, justify, text). If no file is given, pstext will read standard input. size is text size in points, angle is measured in degrees counter-clockwise from horizontal, fontno sets the font type, justify sets the alignment. If fontno is not an integer, then it is taken to be a textstring with the desired fontname. See the gmtdefaults man page for names and numbers of avaiable fonts (or run pstext -L). The alignment refers to the part of the textstring that will be mapped onto the (x,y) point. Choose a 2 character combination of L, C, R (for left, center, or right) and T, M, B for top, middle, or bottom. e.g., BL for lower left. -J Selects the map projection. Scale is inch/degree, 1:xxxxx, or width in inch (upper case modifier). CYLINDRICAL PROJECTIONS: -Jclon0/lat0/scale (Cassini) -Jjlon0/scale (Miller) -Jmscale (Mercator - Greenwich and Equator as origin) -Jmlon0/lat0/scale (Mercator - Give meridian and standard parallel) -Joalon0/lat0/azimuth/scale (Oblique Mercator - point and azimuth) -Joblon0/lat0/lon1/lat1/scale (Oblique Mercator - two points) -Joclon0/lat0/lonp/latp/scale (Oblique Mercator - point and pole) -Jqlon0/scale (Equidistant Cylindrical Projection (Plate Carree)) -Jtlon0/scale (TM - Transverse Mercator) -Juzone/scale (UTM - Universal Transverse Mercator) -Jylon0/lats/scale (Basic Cylindrical Projection) AZIMUTHAL PROJECTIONS: -Jalon0/lat0/scale (Lambert). -Jelon0/lat0/scale (Equidistant). -Jflon0/lat0/horizon/scale (Gnomonic). -Jglon0/lat0/scale (Orthographic). -Jslon0/lat0/scale (General Stereographic) CONIC PROJECTIONS: -Jblon0/lat0/lat1/lat2/scale (Albers) -Jllon0/lat0/lat1/lat2/scale (Lambert) MISCELLANEOUS PROJECTIONS: -Jhlon0/scale (Hammer) -Jilon0/scale (Sinusoidal) -Jklon0/scale (Eckert VI) -Jnlon0/scale (Robinson) -Jrlon0/scale (Winkel Tripel) -Jwlon0/scale (Mollweide) NON-GEOGRAPHICAL PROJECTIONS: -Jpscale (Linear projection for polar (theta,r) coordinates) -Jxx-scale[l|ppow][/y-scale[l|ppow]] (Linear, log, and power scaling) More details can be found in the psbasemap manpages. -Jz Sets the vertical scaling (for 3-D maps). Same syntax as -Jx. -R west, east, south, and north specify the Region of interest. To specify boundaries in degrees and minutes [and seconds], use the dd:mm[:ss] format. Append r if lower left and upper right map coordinates are given instead of wesn.
No space between the option flag and the associated arguments. -B Sets map boundary tickmark intervals. See psbasemap for details. -C Sets the clearance (in inch) between the text and the surrounding box [0.05i/0.05i]. Only used if -W is specified. -D Shifts the projected (x,y) point by dx,dy (in inch) [0/0]. -E Sets the viewpoint's azimuth and elevation (for perspective view) [180/90] -G Sets the gray-shade (0-255) or color (r/g/b, each 0-255) used for drawing the text. [Default is black] -H Input file(s) has Header record(s). Number of header records can be changed by editing your .gmtdefaults file. If used, GMT default is 1 header record. -K More PostScript code will be appended later [Default terminates the plot system]. -L Lists the font-numbers and font-names available, then exits. -N Do NOT clip text at map boundaries [Default will clip]. -O Selects Overlay plot mode [Default initializes a new plot system]. -P Selects Portrait plotting mode [GMT Default is Landscape, see gmtdefaults to change this]. -S Draw text outline. Append pen attributes. -U Draw Unix System time stamp on plot. User may specify where the lower left corner of the stamp should fall on the page relative to lower left corner of plot in inch [Default is (-0.75i/- 0.75i)]. Optionally, append a label, or c (which will plot the command string.) -V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"]. -W Paint a rectangle beneath the text string. Set color [Default is 255/255/255 (white)]. Append o to draw rectangle outline, add a pen to specify pen attributes [1/0/0/0] -X -Y Shift origin of plot by (x-shift,y-shift) inch [Default is (a1i,a1i) for new plots, (0,0) for overlays]. Prepend a for absolute coordinates; the default (r) will reset plot origin. -Z For 3-D projections: Sets the z-level of the basemap [0]. -: Toggles between (longitude,latitude) and (latitude,longitude) input/output. [Default is (longitude,latitude)]. -c Specifies the number of plot copies. [Default is 1]
To plot the outlines of the textstrings stored in the file text.d on a Mercator plot with the given specifications, try pstext text.d -R-30/30/-10/20 -Jm0.1i -P -B5 -S0.5p > plot.ps
gmt, psbasemap
The horizontal justification of surrounding rectangles does not work when Greek symbols, sub- and superscripts, and/or composite characters are imbedded in the textstring.