Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="8210Creatingsemifilledbargraphs.html">
8
<LINK REL="Next" HREF="831Usinglineerrorplots.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="8210Creatingsemifilledbargraphs.html">Previous</A>
26
<A HREF="831Usinglineerrorplots.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="8_3">8.3 Error plots</A></H2>
29
<P> Error plots are used to visually indicate uncertainty in data
30
 points. This is done by for each X value by giving both a minimum and a
31
 maximum Y-value.</P>
32
<P> Before you can use error plots you must remember to include the file
33
 &quot;jpgraph_error.php&quot; in your script.</P>
34
<P> The following example illustrates a simple error bar. We will have 5
35
 points, so we need 10 Y-values. We also would like the error bars to be
36
 red and 2 pixels wide. All this is accomplished by creating an <A href="../ref/ErrorPlot.html#_C_ERRORPLOT">
37
 ErrorPlot()</A> in much the same way as, for example, a normal line
38
 plot. Doing this would now give the example shown below.</P>
39
<P><DIV class="example">
40
<BR> <A href="exframes/frame_example13.html" target="blank"><IMG border="0"
41
HEIGHT="200"  src="img/example13.png" WIDTH="300"></A>
42
<BR><B>Figure 53:</B> A simple error bar <A href="exframes/frame_example13.html"
43
target="blank">[src]</A>&nbsp;
44
<P></P>
45
</DIV></P>
46
<P> You might notice that there is one displeasing esthetic quality of
47
 this graph. The X-scale is just wide enough to just accompany the
48
 number of error bars and hence the first bar is drawn on the Y-axis and
49
 the and last bar just at the edge of the plot area. To adjust this you
50
 might call the <A href="../ref/Plot.html#_PLOT_SETCENTER"> SetCenter()</A>
51
 method which will adjust the X-scale so it does not use the full width
52
 of the X-axis.</P>
53
<P> The following example illustrates the use of this feature by
54
 applying this technique to the previous example<DIV class="example">
55
<BR> <A href="exframes/frame_example14.html" target="blank"><IMG border="0"
56
HEIGHT="200"  src="img/example14.png" WIDTH="300"></A>
57
<BR><B>Figure 54:</B> Adjusting the X-scale not to use the full width of
58
 the X-axis. <A href="exframes/frame_example14.html" target="blank">
59
[src]</A>&nbsp;
60
<P></P>
61
</DIV></P>
62
<P></P>
63
<HR NOSHADE>
64
<A HREF="toc.html">Contents</A>
65
<A HREF="8210Creatingsemifilledbargraphs.html">Previous</A>
66
<A HREF="831Usinglineerrorplots.html">Next</A>
67
</BODY>
68
</HTML>