aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user/gra_plac
diff options
context:
space:
mode:
authorJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:38:23 +0000
committerJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:38:23 +0000
commit78c2bcf9e96ab00615ee6f96905bca78fcd52a00 (patch)
tree9c7e31f2a59e174433e55b589771005b48a34158 /doc/user/gra_plac
parent9daa98ce90ceeeaba9e942d28575d8fcfe36db4b (diff)
downloadlout-78c2bcf9e96ab00615ee6f96905bca78fcd52a00.tar.gz
Lout 3.27.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@23 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/user/gra_plac')
-rw-r--r--doc/user/gra_plac21
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/user/gra_plac b/doc/user/gra_plac
index 7084eb2..b184ed5 100644
--- a/doc/user/gra_plac
+++ b/doc/user/gra_plac
@@ -7,15 +7,18 @@ As we have just seen, the repertoire of symbols that @Code "@Data" is
able to place on the graph is quite limited. However, there is a way
to place any number of arbitrary Lout objects anywhere on the graph,
using the @Code objects option to the @Code "@Graph" symbol:
-@ID @OneRow @Code {
-"@Graph"
-" objects {"
-" @CTR at {2.5 6.0} @Eq { y = x sup 2 }"
-" @CTR at {4.5 7.0} @Eq { y = x sup 3 }"
-" }"
+graphs. @RawIndex { graphs (statistical) }
+graphs.objects @SubIndex { @Code objects option }
+objects.graph @Index { @Code "objects" option (graphs) }
+@ID @OneRow @Code @Verbatim {
+@Graph
+ objects {
+ @CTR at {2.5 6.0} @Eq { y = x sup 2 }
+ @CTR at {4.5 7.0} @Eq { y = x sup 3 }
+ }
}
where we have used the @Code "@Eq" symbol from Chapter {@NumberOf equations}
-twice to place two equations onto the graph at the points {@Code "2.5 6.0"}
+to place two equations onto the graph at the points {@Code "2.5 6.0"}
and {@Code "4.5 7.0"} respectively. An example result appears in the next
section.
@PP
@@ -28,8 +31,8 @@ it over the point. By `to the northwest' we mean that the object's bottom
right corner coincides with the point, and similarly for the other symbols.
@PP
Each of these symbols has a @Code "margin" option which enlarges the
-object by adding a margin around it before placing it:
-@ID @Code "@NW at {2.5 6.0} margin { 0.3 ft } @Eq { y = x sup 2 }"
+object by adding a margin:
+@ID @Code "@NW at {2.5 6.0} margin { 0.3f } @Eq { y = x sup 2 }"
shows the default value, 0.3 times the current font size. As the margin
is increased, the object moves further away from the point.
@PP