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
|
<HTML>
<HEAD>
<TITLE>Error bar example</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<P><font size="+2" color="green">Error bar example</font></P>
<P>
The following script demonstrates the plotting of error bars. See
the figure below.</P>
<p>
<font color="blue"><PRE>
X=[0:20] ! generate some "data"
Y=X^2-20*X+50 !
YEL=10*RAN(X) ! lower error
YEU=10*RAN(X) ! upper error
YES=20*RAN(X) ! symmetric error
SET PLOTSYMBOL -1 ! set plotting symbol
WINDOW 5 ! set window
SET XLABEL 'Asymmetric errors'
GRAPH X Y YEL,,YEU ! plot with asymmetric errors
WINDOW 6 ! change windows
SET XLABEL 'Symmetric errors'
GRAPH X Y YES ! plot with symmetric errors
</PRE></font>
<P>
<center><IMG SRC="img1.gif"></center></P>
<P>
<a href="errorbars.htm"><img src="../shadow_left.gif">
<font size="+1" color="olive">Error bars</font></a></P>
</BODY>
</HTML>
|