diff options
Diffstat (limited to 'doc/user/gra_plac')
-rw-r--r-- | doc/user/gra_plac | 21 |
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 |