Blame | Letzte Änderung | Log anzeigen | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1"><LINK REL="Start" HREF="index.html"><LINK REL="Contents" HREF="toc.html"><LINK REL="Prev" HREF="8210Creatingsemifilledbargraphs.html"><LINK REL="Next" HREF="831Usinglineerrorplots.html"><STYLE TYPE="text/css"><!--BODY { font-family: serif }H1 { font-family: sans-serif }H2 { font-family: sans-serif }H3 { font-family: sans-serif }H4 { font-family: sans-serif }H5 { font-family: sans-serif }H6 { font-family: sans-serif }SUB { font-size: smaller }SUP { font-size: smaller }PRE { font-family: monospace }A { text-decoration: none }--></STYLE></HEAD><BODY><A HREF="toc.html">Contents</A><A HREF="8210Creatingsemifilledbargraphs.html">Previous</A><A HREF="831Usinglineerrorplots.html">Next</A><HR NOSHADE><H2><A NAME="8_3">8.3 Error plots</A></H2><P> Error plots are used to visually indicate uncertainty in datapoints. This is done by for each X value by giving both a minimum and amaximum Y-value.</P><P> Before you can use error plots you must remember to include the file"jpgraph_error.php" in your script.</P><P> The following example illustrates a simple error bar. We will have 5points, so we need 10 Y-values. We also would like the error bars to bered and 2 pixels wide. All this is accomplished by creating an <A href="../ref/ErrorPlot.html#_C_ERRORPLOT">ErrorPlot()</A> in much the same way as, for example, a normal lineplot. Doing this would now give the example shown below.</P><P><DIV class="example"><BR> <A href="exframes/frame_example13.html" target="blank"><IMG border="0"HEIGHT="200" src="img/example13.png" WIDTH="300"></A><BR><B>Figure 53:</B> A simple error bar <A href="exframes/frame_example13.html"target="blank">[src]</A> <P></P></DIV></P><P> You might notice that there is one displeasing esthetic quality ofthis graph. The X-scale is just wide enough to just accompany thenumber of error bars and hence the first bar is drawn on the Y-axis andthe and last bar just at the edge of the plot area. To adjust this youmight call the <A href="../ref/Plot.html#_PLOT_SETCENTER"> SetCenter()</A>method which will adjust the X-scale so it does not use the full widthof the X-axis.</P><P> The following example illustrates the use of this feature byapplying this technique to the previous example<DIV class="example"><BR> <A href="exframes/frame_example14.html" target="blank"><IMG border="0"HEIGHT="200" src="img/example14.png" WIDTH="300"></A><BR><B>Figure 54:</B> Adjusting the X-scale not to use the full width ofthe X-axis. <A href="exframes/frame_example14.html" target="blank">[src]</A> <P></P></DIV></P><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="8210Creatingsemifilledbargraphs.html">Previous</A><A HREF="831Usinglineerrorplots.html">Next</A></BODY></HTML>