1PSSCALE(1) Generic Mapping Tools PSSCALE(1)
2
3
4
6 psscale - Plot gray scale or color scale on maps
7
9 psscale -Dxpos/ypos/length/width[h] [ -A[a|l|c] ] [ -B[p|s]parameters ]
10 [ -Ccpt_file ] [ -E[b|f][length] ] [ -I[max_intens|low_i/high_i] ] [ -K
11 ] [ -L[i][gap] ] [ -M ] [ -Ndpi ] [ -O ] [ -P ] [ -Q ] [
12 -U[just/dx/dy/][c|label] ] [ -V ] [ -X[a|c|r][x-shift[u]] ] [
13 -Y[a|c|r][y-shift[u]] ] [ -Zzfile ] [ -ccopies ]
14
16 psscale plots gray scales or color scales on maps. Both horizontal and
17 vertical scales are supported. For cpt_files with gradational colors
18 (i.e., the lower and upper boundary of an interval have different r/g/b
19 values) psscale will interpolate to give a continuous scale. Varia‐
20 tions in intensity due to shading/illumination may be displayed by set‐
21 ting the option -I. Colors may be spaced according to a linear scale,
22 all be equal size, or by providing a file with individual tile widths.
23
24 -D Defines the position of the center/top (for horizontal scale) or
25 center/left (for vertical scale) and the dimensions of the
26 scale. Give a negative length to reverse the scalebar. Append
27 h to get a horizontal scale [Default is vertical].
28
30 No space between the option flag and the associated arguments.
31
32 -A Place annotations and labels above (instead of below) horizontal
33 scalebars and to the left (instead of the right) of vertical
34 scalebars. Append a or l to move only the annotations or the
35 label to the other side. Append c if you want to print a verti‐
36 cal label as a column of characters (does not work with special
37 characters).
38
39 -B Set annotation, tick, and gridline interval for the colorbar.
40 The x-axis label will plot beneath a horizontal bar (or verti‐
41 cally to the right of a vertical bar), except when using -A. As
42 an option, use the y-axis label to plot the data unit to the
43 right of a horizontal bar (and above a vertical bar). If -B is
44 omitted, or no annotation intervals are provided, the default is
45 to annotate every color level based on the numerical entries in
46 the cpt file (which may be overridden by ULB flags in the cpt
47 file). To specify custom text annotations for intervals, you
48 must append ;annotation to each z-slice in the cpt file.
49
50 -C cpt_file is the color palette file to be used. By default all
51 color changes are annotated. To use a subset, add an extra col‐
52 umn to the cpt-file with a L, U, or B to annotate Lower, Upper,
53 or Both color segment boundaries (but see -B). If not given,
54 psscale will read stdin. Like grdview, psscale can understand
55 pattern specifications in the cpt file.
56
57 -E Add sidebar triangles for back- and/or foreground colors. Add f
58 or b for only one sidebar triangle [Default gives both].
59 Optionally, append triangle height [Default is half the bar‐
60 width].
61
62 -I Add illumination effects. Optionally, set the range of intensi‐
63 ties from - to + max_intens. If not specified, 1 is used.
64 Alternatively, append low/high intensities to specify an asym‐
65 metric range [Default is no illumination].
66
67 -K More PostScript code will be appended later [Default terminates
68 the plot system].
69
70 -L Gives equal-sized color rectangles. Default scales rectangles
71 according to the z-range in the cpt-file (Also see -Z). If
72 set, any equal interval annotation set with -B will be ignored.
73 If gap is appended and the cpt table is discrete we will center
74 each annotation on each rectangle, using the lower boundary z-
75 value for the annotation. If i is prepended we annotate the
76 interval range instead. If -I is used then each rectangle will
77 have its constant color modified by the specified intensity.
78
79 -M Force a monochrome graybar using the (television) YIQ transfor‐
80 mation.
81
82 -N Effective dots-per-inch for the rectangular image making up the
83 color scale [300].
84
85 -O Selects Overlay plot mode [Default initializes a new plot sys‐
86 tem].
87
88 -P Selects Portrait plotting mode [Default is Landscape, see gmtde‐
89 faults to change this].
90
91 -Q Select logarithmic scale and power of ten annotations. All z-
92 values in the cpt file will be converted to p = log10(z) and
93 only integer p values will be annotated using the 10^p format
94 [Default is linear scale].
95
96 -S Do not separate different colour intervals with black lines.
97
98 -U Draw Unix System time stamp on plot. By adding just/dx/dy/, the
99 user may specify the justification of the stamp and where the
100 stamp should fall on the page relative to lower left corner of
101 the plot. For example, BL/0/0 will align the lower left corner
102 of the time stamp with the lower left corner of the plot.
103 Optionally, append a label, or c (which will plot the command
104 string.). The GMT parameters UNIX_TIME, UNIX_TIME_POS, and
105 UNIX_TIME_FORMAT can affect the appearance; see the gmtdefaults
106 man page for details. The time string will be in the locale set
107 by the environment variable TZ (generally local time).
108
109 -V Selects verbose mode, which will send progress reports to stderr
110 [Default runs "silently"].
111
112 -X -Y Shift plot origin relative to the current origin by (x-shift,y-
113 shift) and optionally append the length unit (c, i, m, p). You
114 can prepend a to shift the origin back to the original position
115 after plotting, or prepend r [Default] to reset the current
116 origin to the new location. If -O is used then the default (x-
117 shift,y-shift) is (0,0), otherwise it is (r1i, r1i) or (r2.5c,
118 r2.5c). Alternatively, give c to align the center coordinate (x
119 or y) of the plot with the center of the page based on current
120 page size.
121
122 -Z File with colorbar-width per color entry. By default, width of
123 entry is scaled to color range, i.e., z = 0-100 gives twice the
124 width as z = 100-150 (Also see -L).
125
126 -c Specifies the number of plot copies. [Default is 1].
127
129 To append a vertical color scale (7.5 cm long; 1.25 cm wide) to the
130 right of a plot that is 6 inch wide and 4 inch high, using illumina‐
131 tion, and show back- and foreground colors, and annotating every 5
132 units, use
133
134 psscale -D6.5i/2i/7.5c/1.25c -O -Ccolors.cpt -I -E -B5:BATHYMETRY:/:m:
135 >> map.ps
136
138 When the cpt file is discrete and no illumination is specified, the
139 color bar will be painted using polygons. For all other cases we must
140 paint with an image. Some color printers may give slightly different
141 colors for the two methods given identical RGB values.
142
144 GMT(1), makecpt(1), grd2cpt(1)
145
146
147
148GMT 4.5.6 10 Mar 2011 PSSCALE(1)