File: d.colortable.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (64 lines) | stat: -rw-r--r-- 2,644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<h2>DESCRIPTION</h2>

<em>d.colortable</em> is used to display the color table associated
with a raster map in the active frame on the graphics
monitor. The <b>map</b> name should be an available raster map in the
user's current mapset search path and location.

<p>If the <em>values</em> of both <b>lines</b> and <b>columns</b> are
not specified by the user, <em>d.colortable</em> divides the active
frame equally among the number of categories present in the named
raster map. If one option is specified, the other is automatically set
to accommodate all categories.  If both are specified, as many
categories as possible are displayed.

<p>If the user specifies the name of a map on the command line but does not
specify the values of other parameters, parameter default values will be used.
Alternately, if the user types simply <em>d.colortable</em> on the command line
without any program arguments, the program will prompt the user for parameter
settings using the standard GRASS parser interface.

<h2>EXAMPLE</h2>

The user running the command:

<div class="code"><pre>
d.colortable map=soils color=red lines=1 columns=3
</pre></div>

would see the active graphics frame divided into three columns
extending the full frame height. The lines dividing the color table
associated with the <em>soils</em> map would be displayed in red. The
user would see, at most, only three of the colors from
the <em>soils</em> color table displayed in the active frame (because
the user requested that this frame be divided into three sections).

<h2>NOTES</h2>

If the user wishes to display the entire color table associated with
a map, the user should either stipulate a number of lines (rows) and
columns (cols) sufficient to accommodate the number of categories
in the map's color table, or fail to assign values to one or both of
<b>lines</b> and/or <b>columns</b>.
If the user runs <em>d.colortable</em> using the default number of
lines and columns (the full graphics frame), all categories from the
map's color table will be displayed. However, if the user requests
that the color table associated with a map which has 10 data categories
be displayed in a graphics frame with only 3 lines (rows) and 2 columns
(a total of six cells),
only six of the ten map categories will be displayed.

<p>The user should run <em><a href="d.erase.html">d.erase</a></em>
between runs of <em>d.colortable</em> to avoid confusion.

<h2>SEE ALSO</h2>

<em>
<a href="d.erase.html">d.erase</a>,
<a href="d.legend.html">d.legend</a>,
<a href="d.rast.html">d.rast</a>
</em>

<h2>AUTHOR</h2>

James Westervelt, U.S. Army Construction Engineering Research Laboratory