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="812Specifyingtitlesfortheaxisandlegendsfortheplots.html">
8
<LINK REL="Next" HREF="814Addingseveralplotstothesameradargraph.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="812Specifyingtitlesfortheaxisandlegendsfortheplots.html">Previous</A>
26
<A HREF="814Addingseveralplotstothesameradargraph.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="8_1_3">8.1.3 Adding grid line to the radar plot</A></H3>
29
<P> Each major tick mark can also be connected together to create a
30
 grid. The grid is accessed through the 'grid' property of the graph. To
31
 enable the grid and set the line style to &quot;dotted&quot; you would have to
32
 add the lines<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
33
&nbsp;$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">grid</FONT><FONT
34
color="#007700">-&gt;</FONT><FONT color="#0000BB">Show</FONT><FONT color="#007700">
35
();
36
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
37
color="#0000BB">grid</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
38
SetLineStyle</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
39
&quot;dotted&quot;</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
40
</FONT></CODE></DIV></P>
41
<P>and would result in the following graph<DIV class="example">
42
<BR> <A href="exframes/frame_radarex4.html" target="blank"><IMG border="0"
43
HEIGHT="200"       src="img/img/img/img/img/img/radarex4.png" WIDTH="250"></A>
44
<BR><B>Figure 117:</B> Adding dotted gridlines to the graph <A href="exframes/frame_radarex4.html"
45
target="blank">[src]</A>&nbsp;
46
<P></P>
47
</DIV></P>
48
<P>By design the plot is above the grid line but beneath the axis in
49
 image depth, hence some part of the grid lines are hidden.</P>
50
<P> To have the grid lines more &quot;visible&quot; just change their color, say
51
 to, dark red by invoking the SetColor() method on the grid lines which
52
 would give the following result</P>
53
<P> Another simple change we could do would be to just change the
54
 background color of the radar graph. This is (not surprisingly) done by
55
 a call to the method SetColor() invoked on the graph object.<DIV class="example">
56
<BR> <A href="exframes/frame_radarex6.html" target="blank"><IMG border="0"
57
HEIGHT="200"       src="img/img/img/img/img/img/radarex6.png" WIDTH="250"></A>
58
<BR><B>Figure 118:</B> Changing the background color <A href="exframes/frame_radarex6.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="812Specifyingtitlesfortheaxisandlegendsfortheplots.html">Previous</A>
66
<A HREF="814Addingseveralplotstothesameradargraph.html">Next</A>
67
</BODY>
68
</HTML>