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="8113Adjustingtheticksonatextscale.html">
8
<LINK REL="Next" HREF="8115Usingaccumulatedlinegraphs.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="8113Adjustingtheticksonatextscale.html">Previous</A>
26
<A HREF="8115Usingaccumulatedlinegraphs.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="8_1_14">8.1.14 Using filled line graphs</A></H3>
29
<P> Using a filled line plot is not much different from using a normal
30
 line plot, in fact the only difference is that you must call the method
31
 <A href="../ref/LinePlot.html#_LINEPLOT_SETFILLCOLOR"> SetFillColor()</A>
32
 on a normal line plot. This will then fill the area under the line
33
 graph with the chosen color.</P>
34
<P> In the example below we have also, as an example, specified plot
35
 marks (see previous sections).<DIV class="example">
36
<BR> <A href="exframes/frame_filledlineex01.html" target="blank"><IMG border="0"
37
HEIGHT="200"  src="img/filledlineex01.png" WIDTH="300"></A>
38
<BR><B>Figure 23:</B> Filled line graph with plot marks <A href="exframes/frame_filledlineex01.html"
39
target="blank">[src]</A>&nbsp;
40
<P></P>
41
</DIV></P>
42
<P><STRONG> Note 1.</STRONG> If you add multiple filled line plots to
43
 one graph make sure you add the one with the highest Y-values first
44
 since it will otherwise overwrite the other plots and they will not be
45
 visible. Plots are stroked in the order they are added to the graph, so
46
 the graph you want front-most must be added last.</P>
47
<P><STRONG> Note 2.</STRONG> When using legends with filled line plot
48
 the legend will show the fill color and not the bounding line color.</P>
49
<P><STRONG> Note 3.</STRONG> Filled line plots is only supposed to be
50
 used with positive values. Filling line plots which have negative data
51
 values will probably not have the appearance you expect.</P>
52
<P> As you can see from the graph above the grid lines are below the
53
 filled line graph. If you want the grid lines in front of the graph you
54
 can adjust the depth with call to <A href="../ref/Graph.html#_GRAPH_SETGRIDDEPTH">
55
 Graph::SetGridDepth()</A> As the following example shows<DIV class="example">
56
<BR> <A href="exframes/frame_filledlineex01.1.html" target="blank"><IMG border="0"
57
HEIGHT="200"  src="img/filledlineex01.1.png" WIDTH="300"></A>
58
<BR><B>Figure 24:</B> Adjusting the depth of the gridlines <A href="exframes/frame_filledlineex01.1.html"
59
target="blank">[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="8113Adjustingtheticksonatextscale.html">Previous</A>
66
<A HREF="8115Usingaccumulatedlinegraphs.html">Next</A>
67
</BODY>
68
</HTML>