Less strict monospaced().
[grace.git] / examples / logistic.agr
blobc99c9db92c8c5f56f9d9932a552d0f7fcd48241c
1 # Grace project file
3 @version 50004
4 @page size 792, 612
5 @page scroll 95%
6 @page inout 5%
7 @link page off
8 @map font 0 to "Times-Roman", "Times-Roman"
9 @map font 2 to "Times-Italic", "Times-Italic"
10 @map font 1 to "Times-Bold", "Times-Bold"
11 @map font 3 to "Times-BoldItalic", "Times-BoldItalic"
12 @map font 4 to "Helvetica", "Helvetica"
13 @map font 6 to "Helvetica-Oblique", "Helvetica-Oblique"
14 @map font 5 to "Helvetica-Bold", "Helvetica-Bold"
15 @map font 7 to "Helvetica-BoldOblique", "Helvetica-BoldOblique"
16 @map font 8 to "Symbol", "Symbol"
17 @map font 9 to "ZapfDingbats", "ZapfDingbats"
18 @map color 0 to (255, 255, 255), "white"
19 @map color 1 to (0, 0, 0), "black"
20 @map color 2 to (255, 0, 0), "red"
21 @map color 3 to (0, 255, 0), "green"
22 @map color 4 to (0, 0, 255), "blue"
23 @map color 5 to (255, 255, 0), "yellow"
24 @map color 6 to (188, 143, 143), "brown"
25 @map color 7 to (220, 220, 220), "grey"
26 @map color 8 to (148, 0, 211), "violet"
27 @map color 9 to (0, 255, 255), "cyan"
28 @map color 10 to (255, 0, 255), "magenta"
29 @map color 11 to (255, 165, 0), "orange"
30 @map color 12 to (114, 33, 188), "indigo"
31 @map color 13 to (103, 7, 72), "maroon"
32 @map color 14 to (64, 224, 208), "turquoise"
33 @map color 15 to (0, 139, 0), "green4"
34 @reference date 0
35 @date wrap off
36 @date wrap year 1950
37 @default linewidth 1.0
38 @default linestyle 1
39 @default color 1
40 @default pattern 1
41 @default font 2
42 @default char size 1.000000
43 @default symbol size 1.000000
44 @default sformat "%16.8g"
45 @background color 0
46 @page background fill on
47 @timestamp off
48 @timestamp 0.03, 0.03
49 @timestamp color 1
50 @timestamp rot 0
51 @timestamp font 0
52 @timestamp char size 1.000000
53 @timestamp def "Sun Sep 12 01:52:41 1999"
54 @with string
55 @    string on
56 @    string loctype view
57 @    string 0.0776470588235, 0.339256865913
58 @    string color 1
59 @    string rot 0
60 @    string font 4
61 @    string just 0
62 @    string char size 1.000000
63 @    string def "Non-linear curve fitting:"
64 @with string
65 @    string on
66 @    string loctype view
67 @    string 0.0776470588235, 0.306946688207
68 @    string color 1
69 @    string rot 0
70 @    string font 4
71 @    string just 0
72 @    string char size 1.000000
73 @    string def "The function above is a sample from a logistic curve defined as"
74 @with string
75 @    string on
76 @    string loctype view
77 @    string 0.0776470588235, 0.273021001616
78 @    string color 1
79 @    string rot 0
80 @    string font 4
81 @    string just 0
82 @    string char size 1.000000
83 @    string def "y=1/(1+exp(-(x-a0)/a1))  for x in [-10,20] with a0=5 and a1=3."
84 @with string
85 @    string on
86 @    string loctype view
87 @    string 0.0776470588235, 0.24071082391
88 @    string color 1
89 @    string rot 0
90 @    string font 4
91 @    string just 0
92 @    string char size 1.000000
93 @    string def "To fit the parameters a0 and a1, open Data/Transformations/Non-linear"
94 @with string
95 @    string on
96 @    string loctype view
97 @    string 0.0776470588235, 0.208400646204
98 @    string color 1
99 @    string rot 0
100 @    string font 4
101 @    string just 0
102 @    string char size 1.000000
103 @    string def "curve fitting. Enter items as requested, use initial guesses of a0=1 and"
104 @with string
105 @    string on
106 @    string loctype view
107 @    string 0.0776470588235, 0.176090468498
108 @    string color 1
109 @    string rot 0
110 @    string font 4
111 @    string just 0
112 @    string char size 1.000000
113 @    string def "a1=1 - make sure the item '# of parameters' is 2. For the function,"
114 @with string
115 @    string on
116 @    string loctype view
117 @    string 0.0776470588235, 0.143780290792
118 @    string color 1
119 @    string rot 0
120 @    string font 4
121 @    string just 0
122 @    string char size 1.000000
123 @    string def "use the definition above i.e., y=1/(1+exp(-(x-a0)/a1))."
124 @with string
125 @    string on
126 @    string loctype view
127 @    string 0.0776470588235, 0.111450290792
128 @    string color 1
129 @    string rot 0
130 @    string font 4
131 @    string just 0
132 @    string char size 1.000000
133 @    string def "Alternatively, from File/Open select 'logistic.fit'."
134 @with string
135 @    string on
136 @    string loctype view
137 @    string 0.077647058824, 0.07
138 @    string color 1
139 @    string rot 0
140 @    string font 4
141 @    string just 0
142 @    string char size 1.000000
143 @    string def "Use 'Edit/Load current fit' to see the initial guess. Press 'Apply'. Curves should coinside."
144 @r0 type above
145 @r0 linestyle 1
146 @r0 linewidth 1.0
147 @r0 color 1
148 @r0 line 0, 0, 0, 0
149 @r1 type above
150 @r1 linestyle 1
151 @r1 linewidth 1.0
152 @r1 color 1
153 @r1 line 0, 0, 0, 0
154 @r2 type above
155 @r2 linestyle 1
156 @r2 linewidth 1.0
157 @r2 color 1
158 @r2 line 0, 0, 0, 0
159 @r3 type above
160 @r3 linestyle 1
161 @r3 linewidth 1.0
162 @r3 color 1
163 @r3 line 0, 0, 0, 0
164 @r4 type above
165 @r4 linestyle 1
166 @r4 linewidth 1.0
167 @r4 color 1
168 @r4 line 0, 0, 0, 0
169 @g0 on
170 @g0 hidden false
171 @g0 type XY
172 @g0 stacked false
173 @g0 bar hgap 0.000000
174 @g0 fixedpoint off
175 @g0 fixedpoint type 0
176 @g0 fixedpoint xy 0.000000, 0.000000
177 @g0 fixedpoint format general general
178 @g0 fixedpoint prec 6, 6
179 @with g0
180 @    world xmin -10
181 @    world xmax 20
182 @    world ymin 0
183 @    world ymax 1
184 @    stack world 0, 0, 0, 0
185 @    view xmin 0.191361
186 @    view xmax 1.102756
187 @    view ymin 0.468498
188 @    view ymax 0.848142
189 @    title ""
190 @    title font 4
191 @    title size 1.500000
192 @    title color 1
193 @    subtitle ""
194 @    subtitle font 4
195 @    subtitle size 1.000000
196 @    subtitle color 1
197 @    xaxes scale Normal
198 @    yaxes scale Normal
199 @    xaxes invert off
200 @    yaxes invert off
201 @    xaxis  on
202 @    xaxis  type zero false
203 @    xaxis  offset 0.000000 , 0.000000
204 @    xaxis  bar off
205 @    xaxis  bar color 1
206 @    xaxis  bar linestyle 1
207 @    xaxis  bar linewidth 1.0
208 @    xaxis  label ""
209 @    xaxis  label layout para
210 @    xaxis  label place auto
211 @    xaxis  label char size 1.000000
212 @    xaxis  label font 4
213 @    xaxis  label color 1
214 @    xaxis  label place normal
215 @    xaxis  tick on
216 @    xaxis  tick major 10
217 @    xaxis  tick minor ticks 1
218 @    xaxis  tick default 6
219 @    xaxis  tick place rounded true
220 @    xaxis  tick in
221 @    xaxis  tick major size 1.000000
222 @    xaxis  tick major color 1
223 @    xaxis  tick major linewidth 1.0
224 @    xaxis  tick major linestyle 1
225 @    xaxis  tick major grid off
226 @    xaxis  tick minor color 1
227 @    xaxis  tick minor linewidth 1.0
228 @    xaxis  tick minor linestyle 1
229 @    xaxis  tick minor grid off
230 @    xaxis  tick minor size 0.500000
231 @    xaxis  ticklabel on
232 @    xaxis  ticklabel prec 1
233 @    xaxis  ticklabel format decimal
234 @    xaxis  ticklabel append ""
235 @    xaxis  ticklabel prepend ""
236 @    xaxis  ticklabel angle 0
237 @    xaxis  ticklabel skip 0
238 @    xaxis  ticklabel stagger 0
239 @    xaxis  ticklabel place normal
240 @    xaxis  ticklabel offset auto
241 @    xaxis  ticklabel offset 0.000000 , 0.010000
242 @    xaxis  ticklabel sign normal
243 @    xaxis  ticklabel start type auto
244 @    xaxis  ticklabel start 0.000000
245 @    xaxis  ticklabel stop type auto
246 @    xaxis  ticklabel stop 0.000000
247 @    xaxis  ticklabel char size 1.000000
248 @    xaxis  ticklabel font 4
249 @    xaxis  ticklabel color 1
250 @    xaxis  tick place both
251 @    xaxis  ticklabel type auto
252 @    xaxis  tick type auto
253 @    yaxis  on
254 @    yaxis  type zero false
255 @    yaxis  offset 0.000000 , 0.000000
256 @    yaxis  bar off
257 @    yaxis  bar color 1
258 @    yaxis  bar linestyle 1
259 @    yaxis  bar linewidth 1.0
260 @    yaxis  label ""
261 @    yaxis  label layout para
262 @    yaxis  label place auto
263 @    yaxis  label char size 1.000000
264 @    yaxis  label font 4
265 @    yaxis  label color 1
266 @    yaxis  label place normal
267 @    yaxis  tick on
268 @    yaxis  tick major 0.2
269 @    yaxis  tick minor ticks 1
270 @    yaxis  tick default 6
271 @    yaxis  tick place rounded true
272 @    yaxis  tick in
273 @    yaxis  tick major size 1.000000
274 @    yaxis  tick major color 1
275 @    yaxis  tick major linewidth 1.0
276 @    yaxis  tick major linestyle 1
277 @    yaxis  tick major grid off
278 @    yaxis  tick minor color 1
279 @    yaxis  tick minor linewidth 1.0
280 @    yaxis  tick minor linestyle 1
281 @    yaxis  tick minor grid off
282 @    yaxis  tick minor size 0.500000
283 @    yaxis  ticklabel on
284 @    yaxis  ticklabel prec 1
285 @    yaxis  ticklabel format decimal
286 @    yaxis  ticklabel append ""
287 @    yaxis  ticklabel prepend ""
288 @    yaxis  ticklabel angle 0
289 @    yaxis  ticklabel skip 0
290 @    yaxis  ticklabel stagger 0
291 @    yaxis  ticklabel place normal
292 @    yaxis  ticklabel offset auto
293 @    yaxis  ticklabel offset 0.000000 , 0.010000
294 @    yaxis  ticklabel sign normal
295 @    yaxis  ticklabel start type auto
296 @    yaxis  ticklabel start 0.000000
297 @    yaxis  ticklabel stop type auto
298 @    yaxis  ticklabel stop 0.000000
299 @    yaxis  ticklabel char size 1.000000
300 @    yaxis  ticklabel font 4
301 @    yaxis  ticklabel color 1
302 @    yaxis  tick place both
303 @    yaxis  ticklabel type auto
304 @    yaxis  tick type auto
305 @    altxaxis  off
306 @    altyaxis  off
307 @    legend off
308 @    legend loctype view
309 @    legend x1 1.03529411765
310 @    legend y1 0.8
311 @    legend box color 1
312 @    legend box pattern 0
313 @    legend box linewidth 1.0
314 @    legend box linestyle 1
315 @    legend box fill color 0
316 @    legend box fill pattern 1
317 @    legend font 4
318 @    legend char size 1.000000
319 @    legend color 1
320 @    legend length 4
321 @    legend vgap 1
322 @    legend hgap 1
323 @    legend invert false
324 @    frame type 0
325 @    frame linestyle 1
326 @    frame linewidth 1.0
327 @    frame color 1
328 @    frame pattern 1
329 @    frame background color 0
330 @    frame background pattern 0
331 @    s0 hidden false
332 @    s0 type xy
333 @    s0 symbol 0
334 @    s0 symbol size 1.000000
335 @    s0 symbol color 1
336 @    s0 symbol pattern 1
337 @    s0 symbol fill color 1
338 @    s0 symbol fill pattern 0
339 @    s0 symbol linewidth 1.0
340 @    s0 symbol linestyle 1
341 @    s0 symbol char 0
342 @    s0 symbol char font 2
343 @    s0 symbol skip 0
344 @    s0 line type 1
345 @    s0 line linestyle 1
346 @    s0 line linewidth 1.0
347 @    s0 line color 1
348 @    s0 line pattern 1
349 @    s0 baseline type 0
350 @    s0 baseline off
351 @    s0 dropline off
352 @    s0 fill type 0
353 @    s0 fill rule 0
354 @    s0 fill color 0
355 @    s0 fill pattern 1
356 @    s0 avalue off
357 @    s0 avalue type 2
358 @    s0 avalue char size 1.000000
359 @    s0 avalue font 2
360 @    s0 avalue color 1
361 @    s0 avalue rot 0
362 @    s0 avalue format general
363 @    s0 avalue prec 3
364 @    s0 avalue prepend ""
365 @    s0 avalue append ""
366 @    s0 avalue offset 0.000000 , 0.000000
367 @    s0 errorbar on
368 @    s0 errorbar place both
369 @    s0 errorbar color 1
370 @    s0 errorbar pattern 1
371 @    s0 errorbar size 2.000000
372 @    s0 errorbar linewidth 1.0
373 @    s0 errorbar linestyle 1
374 @    s0 errorbar riser linewidth 1.0
375 @    s0 errorbar riser linestyle 1
376 @    s0 errorbar riser clip off
377 @    s0 errorbar riser clip length 0.100000
378 @    s0 comment "logistic.d"
379 @    s0 legend  ""
380 @target G0.S0
381 @type xy
382              -10         0.006693
383         -9.69697         0.007399
384        -9.393939         0.008179
385        -9.090909          0.00904
386        -8.787879         0.009992
387        -8.484848         0.011042
388        -8.181818         0.012201
389        -7.878788         0.013481
390        -7.575758         0.014892
391        -7.272727         0.016449
392        -6.969697         0.018165
393        -6.666667         0.020058
394        -6.363636         0.022142
395        -6.060606         0.024438
396        -5.757576         0.026966
397        -5.454545         0.029746
398        -5.151515         0.032804
399        -4.848485         0.036165
400        -4.545455         0.039856
401        -4.242424         0.043906
402        -3.939394         0.048347
403        -3.636364         0.053212
404        -3.333333         0.058537
405        -3.030303         0.064358
406        -2.727273         0.070715
407        -2.424242         0.077648
408        -2.121212         0.085197
409        -1.818182         0.093407
410        -1.515152         0.102319
411        -1.212121         0.111977
412        -0.909091         0.122421
413        -0.606061         0.133694
414         -0.30303         0.145831
415                0         0.158869
416          0.30303         0.172836
417         0.606061         0.187758
418         0.909091          0.20365
419         1.212121         0.220522
420         1.515152         0.238374
421         1.818182         0.257194
422         2.121212         0.276959
423         2.424242         0.297635
424         2.727273         0.319173
425         3.030303         0.341512
426         3.333333         0.364576
427         3.636364         0.388281
428         3.939394         0.412525
429         4.242424         0.437202
430         4.545455         0.462194
431         4.848485         0.487376
432         5.151515         0.512624
433         5.454545         0.537806
434         5.757576         0.562798
435         6.060606         0.587475
436         6.363636         0.611719
437         6.666667         0.635424
438         6.969697         0.658488
439         7.272727         0.680827
440         7.575758         0.702365
441         7.878788         0.723041
442         8.181818         0.742806
443         8.484848         0.761626
444         8.787879         0.779478
445         9.090909          0.79635
446         9.393939         0.812242
447          9.69697         0.827164
448               10         0.841131
449         10.30303         0.854169
450        10.606061         0.866306
451        10.909091         0.877579
452        11.212121         0.888023
453        11.515152         0.897681
454        11.818182         0.906593
455        12.121212         0.914803
456        12.424242         0.922352
457        12.727273         0.929285
458        13.030303         0.935642
459        13.333333         0.941463
460        13.636364         0.946788
461        13.939394         0.951653
462        14.242424         0.956094
463        14.545455         0.960144
464        14.848485         0.963835
465        15.151515         0.967196
466        15.454545         0.970254
467        15.757576         0.973034
468        16.060606         0.975562
469        16.363636         0.977858
470        16.666667         0.979942
471        16.969697         0.981835
472        17.272727         0.983551
473        17.575758         0.985108
474        17.878788         0.986519
475        18.181818         0.987799
476        18.484848         0.988958
477        18.787879         0.990008
478        19.090909          0.99096
479        19.393939         0.991821
480         19.69697         0.992601
481               20         0.993307