blob: 089139a862d62f36ee204d822d7b202481669048 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
@Section
@Title { Adding a key to the graph }
@Tag { key }
@Begin
@PP
A @I key to a graph is an explanation of what each data set
key. @Index { key in graph }
represents. To assist you in constructing a key, some extra symbols
are provided in addition to {@Code "@Graph"}:
graph.cross @Index @Code "@GraphCross"
graph.plus @Index @Code "@GraphPlus"
graph.square @Index @Code "@GraphSquare"
graph.filled.square @Index @Code "@GraphFilledSquare"
graph.diamond @Index @Code "@GraphDiamond"
graph.filled.diamond @Index @Code "@GraphFilledDiamond"
graph.circle @Index @Code "@GraphCircle"
graph.filled.circle @Index @Code "@GraphFilledCircle"
graph.triangle @Index @Code "@GraphTriangle"
graph.filled.triangle @Index @Code "@GraphFilledTriangle"
graph.noline @Index @Code "@GraphNoLine"
graph.solid @Index @Code "@GraphSolid"
graph.dashed @Index @Code "@GraphDashed"
graph.dotted @Index @Code "@GraphDotted"
@ID @Tab
@Fmta { @Col @Code A ! @Col B ! @Col @Code C ! @Col D }
{
@Rowa
A { "@GraphCross" }
B { @GraphCross }
C { "@GraphPlus" }
D { @GraphPlus }
@Rowa
A { "@GraphSquare" }
B { @GraphSquare }
C { "@GraphFilledSquare" }
D { @GraphFilledSquare }
@Rowa
A { "@GraphDiamond" }
B { @GraphDiamond }
C { "@GraphFilledDiamond" }
D { @GraphFilledDiamond }
@Rowa
A { "@GraphCircle" }
B { @GraphCircle }
C { "@GraphFilledCircle" }
D { @GraphFilledCircle }
@Rowa
A { "@GraphTriangle" }
B { @GraphTriangle }
C { "@GraphFilledTriangle" }
D { @GraphFilledTriangle }
@Rowa
@Rowa
A { "@GraphNoLine" }
B { @GraphNoLine }
@Rowa
A { "@GraphSolid" }
B { @GraphSolid }
@Rowa
A { "@GraphDashed" }
B { @GraphDashed }
@Rowa
A { "@GraphDotted" }
B { @GraphDotted }
}
These extra symbols may be used anywhere in your document except within
the right parameter of {@Code "@Graph"}; they are commonly used within
the caption options of {@Code "@Graph"}:
@ID @OneRow @Code {
"@Graph"
" rightcaption {"
"@GraphPlus @GraphSolid @GraphPlus Boston"
"@GraphPlus @GraphDashed @GraphPlus New York"
"@GraphPlus @GraphDotted @GraphPlus Philadelphia"
"}"
}
Recall that unlike the other captions, @Code rightcaption is set using
the @Code "lines @Break" style rather than {@Code "clines @Break"}
(Section {@NumberOf captions}). Adding this caption to the graph
from Section {@NumberOf data}, the complete result is
@CD @Graph
rightcaption {
@GraphPlus @GraphSolid @GraphPlus Boston
@GraphPlus @GraphDashed @GraphPlus New York
@GraphPlus @GraphDotted @GraphPlus Philadelphia
}
{
@Data points { plus } pairs { solid }
{ 1720 12000 1730 13000 1740 15601 1760 15631 1770 15877 }
@Data points { plus } pairs { dashed }
{ 1720 7000 1730 8622 1740 10451 1750 14255 1760 18000 1770 22667 }
@Data points { plus } pairs { dotted }
{ 1720 10000 1730 11500 1740 12654 1750 18202 1760 23750 1770 34583 }
}
The first eight symbols have a @Code "symbolsize" option with the
usual meaning and the usual default value ({@Code "0.15 ft"}). The
last four symbols have @Code "dashlength" and @Code "linewidth" options
with the usual default values, {@Code "0.2 ft"} and {@Code "0.5 pt"}
respectively, and a @Code "length" option, which determines the length
of the line drawn by each symbol; its default value is {@Code "1.0 ft"}.
@End @Section
|