File: errorbars.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (83 lines) | stat: -rw-r--r-- 3,596 bytes parent folder | download
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
<HTML>
<HEAD>
<TITLE>Error bars</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+2" color="green">Error bars</font></P>

<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%" valign="top"><CODE>
GRAPH { `legendtext' } x y { ye1 { xe1 { ye2 { xe2 }}}}</TD>
</TR>
</TABLE>
<P>
 The optional vectors <CODE>ye1</CODE>, <CODE>xe1</CODE>, <CODE>ye2</CODE>, and <CODE>xe2</CODE> are
 interpreted as errors for drawing error bars. You can have symmetric or asymmetric error bars.</P>
<P>
 <font size="+1" color="green">Symmetric error bars</font></P>
<P>
 For symmetric error bars, the error variable should contain one half of the
 total error. See the table below.</p>
<P>
 <center>
 <table border="1" cols="2">
 <tr>
 <td valign="center" align="center" width="30%"><i>parameters present</i></td>
 <td align="center"><i>result</i></td>
 </tr><tr>
 <td valign="top"><CODE>ye1</CODE> but not <CODE>ye2</CODE></td>
 <td valign="top">symmetric vertical error bars will be drawn, i.e.,<br />
  at the point <CODE>(x[j],y[j])</CODE>, the error bar is drawn<br />
  from <CODE>y[j]-ye1[j]</CODE> to <CODE>y[j]+ye1[j]</CODE></td>
 </tr><tr>
 <td valign="top"><CODE>xe1</CODE> but not <CODE>xe2</CODE></td>
 <td valign="top">symmetric horizontal error bars will be drawn, i.e.,<br />
  at the point <CODE>(x[j],y[j])</CODE>, the error bar is drawn<br />
  from <CODE>x[j]-xe1[j]</CODE> to <CODE>x[j]+xe1[j]</CODE></td>
 </tr></table></center></p>
<P>
 <font size="+1" color="green">Asymmetric error bars</font></P>
<P>
 For asymmetric error bars, the first error variable contains the lower error
 and the second error variable contains the upper error. See the table below.</p>
<P>
 <center>
 <table border="1" cols="2">
 <tr>
 <td valign="center" align="center" width="30%"><i>parameters present</i></td>
 <td align="center"><i>result</i></td>
 </tr><tr>
 <td valign="top"><CODE>ye1</CODE> and <CODE>ye2</CODE></td>
 <td valign="top">asymmetric vertical error bars are drawn, i.e.,<br />
  at the point <CODE>(x[j],y[j])</CODE>, the error bar is drawn<br />
  from <CODE>y[j]-ye1[j]</CODE> to <CODE>y[j]+ye2[j]</CODE></td>
 </tr><tr>
 <td valign="top"><CODE>xe1</CODE> and <CODE>xe2</CODE></td>
 <td valign="top">asymmetric horizontal error bars are drawn, i.e.,<br />
  at the point <CODE>(x[j],y[j])</CODE>, the error bar is drawn<br />
  from <CODE>x[j]-xe1[j]</CODE> to <CODE>x[j]+xe2[j]</CODE></td>
 </tr></table></center></p>
<P>
 <font size="+1" color="green">Error bar shape</font></P>
<P>
 The error bars will have "feet", that is, short line segments, one at each 
 end of the error bar, which are perpendicular to the error bar.  The size of
 the foot is the same as the size of the plotting symbol, which can be changed
 using the <a href="../Characteristics/PlottingSymbol/plotsymbolsize.htm"><CODE>%PLOTSYMBOLSIZE</CODE></A>
 characteristic or by entering a relative size vector with the
 <CODE>PLOTSYMBOL</CODE> characteristic. The error bar will be clipped at the boundaries of the
 plotting symbol if the symbol is symmetric under <CODE>90&deg;</CODE>
 rotations, for example, a box (symbol number <code>1</code>).
<P>
 <a href="errorbarexample.htm"><font size=+1 color="olive">Example</font></a></P>
<P>
 <a href="histograms.htm"><img src="../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Histograms</font></a><br />
 <a href="fillareacurve.htm"><img src="../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">Filling the area under a curve</font></a>
</P>
</BODY>
</HTML>