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="8211Customizingthepatterns.html">
8
<LINK REL="Next" HREF="9WorkingwithnonXYplots.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="8211Customizingthepatterns.html">Previous</A>
26
<A HREF="9WorkingwithnonXYplots.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="8_22">8.22  Adding static lines to the plot</A></H2>
29
<P> In addition to the bands you can also add static lines to the graph.
30
 An example of that is actually shown in figure 11 above. You create a
31
 line as an instance of <A href="../ref/PlotLine.html#_C_PLOTLINE">
32
 class PlotLine</A> . So for example the lines<DIV class="phpscript"><CODE>
33
<FONT color="#000000"> <FONT color="#0000BB">&nbsp;$sline&nbsp;</FONT><FONT color="#007700">
34
=&nbsp;new&nbsp;</FONT><FONT color="#0000BB">PlotLine</FONT><FONT color="#007700">
35
(</FONT><FONT color="#0000BB">HORIZONTAL</FONT><FONT color="#007700">,</FONT><FONT
36
color="#0000BB">0</FONT><FONT color="#007700">,</FONT><FONT color="#DD0000">
37
&quot;black&quot;</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">2</FONT><FONT
38
color="#007700">);
39
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
40
color="#0000BB">Add</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
41
$sline</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
42
</FONT></CODE></DIV></P>
43
<P> will add a 2-pixel wide horizontal static line at Y-position zero.</P>
44
<HR NOSHADE>
45
<A HREF="toc.html">Contents</A>
46
<A HREF="8211Customizingthepatterns.html">Previous</A>
47
<A HREF="9WorkingwithnonXYplots.html">Next</A>
48
</BODY>
49
</HTML>