aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user/gra
blob: 58c73ac620452497e89f05cdcfa0be8bbe3e2ca7 (plain) (blame)
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
@Chapter
  @Title { Graphs }
  @Tag { graphs }
@Begin
@LP
This chapter describes how to draw graphs, using the @Code "@Graph"
graphs. @Index { graphs (statistical) }
graph. @Index @Code "@Graph"
symbol.  For example,
@ID @OneRow @Code {
"@Graph"
"    abovecaption { New South Wales road deaths, 1960--1990"
"(fatalities per 100 million vehicle km) }"
"{"
"    @Data  points { plus }  pairs { dashed }"
"    { 1963 5.6  1971 4.3  1976 3.7  1979 3.4  1982 2.9  1985 2.3  1988 2.0 }"
"}"
}
produces the graph
@CD @Graph
    abovecaption { New South Wales road deaths, 1960--1990
(fatalities per 100 million vehicle km) }
{
    @Data
        points { plus }
        pairs { dashed }
    {
        1963 5.6  1971 4.3  1976 3.7  1979 3.4  1982 2.9  1985 2.3  1988 2.0
    }
}
The features of @Code "@Graph" include captions, automatic and manual
ticks and labels, logarithmic axes, histograms, and plotting of
mathematical functions.
@BeginSections
@Include { gra_intr }
@Include { gra_over }
@Include { gra_capt }
@Include { gra_tick }
@Include { gra_data }
@Include { gra_plac }
@Include { gra_func }
@Include { gra_keys }
@Include { gra_erro }
@Include { gra_summ }
@EndSections
@End @Chapter