| 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="84Scatterplots.html">
|
|
|
8 |
<LINK REL="Next" HREF="86BoxandStockcharts.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="84Scatterplots.html">Previous</A>
|
|
|
26 |
<A HREF="86BoxandStockcharts.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="8_5">8.5 Field plots</A></H2>
|
|
|
29 |
<P> A variant of scatter plot is the so called<I> Field Plots</I> this
|
|
|
30 |
is basically a scatter plot where each scatter point is an arrow with a
|
|
|
31 |
direction between 0 to 359 degrees. This effectively allows the
|
|
|
32 |
visualization of 3 parameters at each point (x,y,angle). As an
|
|
|
33 |
additional bonus there is also possible to define a callback for each
|
|
|
34 |
scatter plot to also define the color for each point.</P>
|
|
|
35 |
<P> To create a field plot you create an instance of <A href="../ref/FieldPlot.html#_C_FIELDPLOT">
|
|
|
36 |
FieldPlot</A> in the same way as you created a normal scatter plot. The
|
|
|
37 |
arguments to this method are Y-coordinate, X-coordinate and angle. To
|
|
|
38 |
specify a callback you use <A href="../ref/FieldPlot.html#_FIELDPLOT_SETCALLBACK">
|
|
|
39 |
FieldPlot::SetCallback()</A></P>
|
|
|
40 |
<P> The following example (and code) illustrates the usage of the field
|
|
|
41 |
plot type.</P>
|
|
|
42 |
<P><DIV class="example">
|
|
|
43 |
<BR> <A href="exframes/frame_fieldscatterex1.html" target="blank"><IMG border="0"
|
|
|
44 |
HEIGHT="200" src="img/fieldscatterex1.png" WIDTH="300"></A>
|
|
|
45 |
<BR><B>Figure 63:</B> Example of the Field plot type <A href="exframes/frame_fieldscatterex1.html"
|
|
|
46 |
target="blank">[src]</A>
|
|
|
47 |
<P></P>
|
|
|
48 |
</DIV></P>
|
|
|
49 |
<P> In addition to the parameters mentioned above you can also adjust
|
|
|
50 |
both the general size of the arrow and also the specific size of the
|
|
|
51 |
arrowhead. The arrow size is specified in pixels and the arrow head is
|
|
|
52 |
specified as an integers between 0 and 10. These sizes are specified
|
|
|
53 |
with a call to <A href="../ref/FieldArrow.html#_FIELDARROW_SETSIZE">
|
|
|
54 |
FieldPlot::arrow::SetSize()</A></P>
|
|
|
55 |
<HR NOSHADE>
|
|
|
56 |
<A HREF="toc.html">Contents</A>
|
|
|
57 |
<A HREF="84Scatterplots.html">Previous</A>
|
|
|
58 |
<A HREF="86BoxandStockcharts.html">Next</A>
|
|
|
59 |
</BODY>
|
|
|
60 |
</HTML>
|