-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNOTES
More file actions
103 lines (85 loc) · 4 KB
/
NOTES
File metadata and controls
103 lines (85 loc) · 4 KB
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
spacing="10Y,5Y,1Y,6M,2M,1M,..."
spacing="100,10,5,2,1,0.5,0.25"
start alternatives:
sample
member
point
! offset
registration
align
alignat
! anchor
labelevery="100,10,5,2,1,0.5,0.25"
labelat="0"
every="100,10,5,2,1,0.5,0.25"
at="0"
current axis attributes:
min,max
position: offset of the axis, in pixels, relative to bottom (for horiz axes) or left (for vertical) edge of plot box
positionbase: if "right", change meaning of "position" attribute to be relative to right rather than left edge of plot box
if "top", change meaning of "position" attribute to be relative to top rather than bottom edge of plot box
minoffset,maxoffset: pixel amounts
pregap,postgap: pixel amounts
position
new axis attributes:
min,max: same as before
minposition,maxposition: location of min/max point along axis, as expression of the form 'A[oN]', where A
is a number from -1 to 1, o is '+' or '-', and N is a nonnegative integer indicating
a number of pixels.
anchor = location rel to axis length ([-1,1]) of anchor point
base = point rel to plot box ([-1,1] X [-1,1]) where anchor is attached
position = pixel offset as coord pair or single number; if single number, defaults to displacement in perp direction,
for consistency with old meaning of "position"
length = AoN, where A = fraction of plot box dimension, N = pixel offset
new axis attributes:
minoffset,maxoffset: deprecated
pregap,postgap: deprecated
positionbase: deprecated
base: plot box relative coordinates [(-1,-1) to (1,1)] of base point where axis is attached
anchor: axis-relative coordinate [-1 to 1] of point on axis where attached to base point
position: pixel offset amounts; accepts a coordinate pair of pixels, but if just one number is specified, defaults
to using that number as the vertical coordinate for horizontal axes, or the horizontal coordinate for
vertical axes. For example, position="5" is the same as position="0 5" for a horizontal axis, or
position="5 0" for a vertical axis. This gives consistency with the old (original) meaning of
the position attribute.
minpos,maxpos: expression of the form "AoNp" where A = axis length fraction, o = "+" or "-", N = pixel displacement, p = "p"
Examples:
maxpos="1-5p": max position is at far end of axis, minus 5 pixels
maxpos="0+5p": max position is at near end of axis, plus 5 pixels
maxpos="0": max position is at near end of axis (plus 0 pixels)
so old style minoffset="S" is same as minpos="0+Sp"
and maxoffset="T" is same as maxpos="1-Tp"
offset,length: expression of the form "AoNp", similar to above, where A = plotbox length/width fraction, N = pixel displacement,
"offset" gives position of "near" end of axis, and "length" gives axis length.
Default is offset="0+0p", length="1+0p".
old style pregap="S", postgap="T" are same as offset="0+Sp", length="1-Up", where U=T+S.
*** check for consistency in use of the terms "position", "base", "offset", etc. with attributes associated with other MUGL tags.
<mugl>
<horizontalaxis id="x"/>
<verticalaxis id="yupper"
min="0" max="10"
minrelpos="0" maxrelpos="1"
relpregap=".5" relpostgap="0"
>
</verticalaxis>
<verticalaxis id="ylower"
min="0" max="10"
minrelpos="1" maxrelpos="0"
relpregap="0" relpostgap=".5"
>
<labels format="..." spacing="..." start="..."
omit="...">
<label format="..." spacing="..." start="..."/>
<label format="..." spacing="..." start="..."/>
<label format="..." spacing="..." start="..."/>
</labels>
</verticalaxis>
<plot>
<horizontalaxis ref="x">
</horizontalaxis>
<verticalaxis ref="y">
</verticalaxis>
</plot>
<data>
</data>
</mugl>