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="71Lineplots.html">
8
<LINK REL="Next" HREF="712Displayingthevaluesforeachdatapoint.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="71Lineplots.html">Previous</A>
26
<A HREF="712Displayingthevaluesforeachdatapoint.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="7_1_1">7.1.1 Adding plot marks to line-plots XXX</A></H3>
29
<P> It might sometimes be desirable to highlight the data-points with
30
 marks in the intersection between the given x and Y-coordinates. This
31
 is accomplished by specifying the wanted plot mark type for the &quot;mark&quot;
32
 property of the line graph. A full list of all available marks is given
33
 in the class reference <A href="../ref/PlotMark.html#_PLOTMARK_SETTYPE">
34
PlotMarks</A></P>
35
<P> For now let's just add a triangle shape marker to our previous graph
36
 by adding the line<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT
37
color="#0000BB">&nbsp;$lineplot</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
38
mark</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">SetType</FONT><FONT
39
color="#007700">(</FONT><FONT color="#0000BB">MARK_UTRIANGLE</FONT><FONT color="#007700">
40
);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P>
41
<P> This will give the graph as shown below<DIV class="example">
42
<BR> <A href="exframes/frame_example3.1.html" target="blank"><IMG border="0"
43
HEIGHT="200"       src="img/img/img/img/img/img/example3.1.png" WIDTH="300"></A>
44
<BR><B>Figure 7:</B> Adding markers to the previous example <A href="exframes/frame_example3.1.html"
45
target="blank">[src]</A>&nbsp;
46
<P></P>
47
</DIV></P>
48
<P></P>
49
<P> If you like you can of course both change the size, fill-color and
50
 frame color of the chosen plot mark.</P>
51
<P> The colors of the marks will, if you don't specify them explicitly,
52
 follow the line color. Please note that if you want different colors
53
 for the marks and the line the call to SetColor() for the marks must be
54
 done after the call to the line since the marks color will always be
55
 reset to the lines color when you set the line.</P>
56
<HR NOSHADE>
57
<A HREF="toc.html">Contents</A>
58
<A HREF="71Lineplots.html">Previous</A>
59
<A HREF="712Displayingthevaluesforeachdatapoint.html">Next</A>
60
</BODY>
61
</HTML>