extend new example documentation functionallity and add some new examples with descri...
[PyX/mjg.git] / examples / path / addjoin.txt
blob6e5516959fc1366730ce543b37fb46009484e2fd
1 Adding and joining paths
3 The result of this example looks very much the same like the ''pathitems''
4 example from the ''Basic drawing'' section. However we're using a different
5 approach to construct the paths in this example: we're adding and joining
6 paths. ... The difference is in whether the resulting path just contains all
7 the subpaths from the first and the second path or the last subpath from the
8 first path continued by the first subpath of the second path leading to a
9 single subpath only.
11 ! An similar result in terms of the line thickness could be achieved by
12 setting a different scale for the linewidth by
14     unit.set(wscale=10)
16 immediately after the import statement. The unit system of PyX is aware of
17 several length types (unscaleable ''true'' coordinates `t`, regular ''user''
18 coordinates `u`, ''visual'' coordinates `v` for arrows, symbols and other
19 Jsmall visual components, line ''widths'' `w` and the ``teXt`` sizes `x`). The
20 length types can be scaled independantly from each other (except for ''true''
21 coordinates).
23 ! Note that joining of two paths might inserts an connection line between the
24 first and the second path. Hence we could for example skip the second line when
25 constructing `rect2` in our example above without any change in the result.