File: floating.html

package info (click to toggle)
pygdchart2 0.beta1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 508 kB
  • ctags: 308
  • sloc: python: 1,268; ansic: 1,029; makefile: 6; sh: 1
file content (118 lines) | stat: -rw-r--r-- 5,098 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118


<html>
	<head>
		<LINK REL=StyleSheet HREF="../style/style.css" TYPE="text/css">
	</head>
		<a href="area.html">&lt;--previous</a> |
	<a href="../index.html">contents</a> |
	<a href="hlc.html">next--&gt;</a> 

	<hr>
	<body>
        <h1>Floating Bar Graphs</h1>
		
<table width="80%">
    <tr>
        <td>
            <center>
                <img src="../images/float.png">
            </center>
        </td>
        <td>
            <center>
                <img src="../images/float3D.png">
            </center>
        </td>
    </tr>
    <tr>
        <td>
            <center>
                <b> FloatingBar </b>
            </center>
        </td>
        <td>
            <center>
                <b> FloatingBar3D </b>
            </center>
        </td>
    </tr>
</table>

<h2> Data Format </h2>

<p> The FloatingBar .setData() method accepts an arbitrary number of tuples.
The first element of the tuple is a list of the lower values of the floating
bar, and the second element is a list of the upper values. Here is an example
that plots a single set of data (spaced for clarity):</p>

<code>
<table width="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="#B82619">
	<tr>
		<td>
			<table cellpadding="5" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
				<tr>
					<td valign="top">

<pre><font color="#000000">x</font><font color="#0000C0">.</font><font color="#000000">setData</font><font color="#0000C0">(</font>
                <font color="#0000C0">(</font>
                    <font color="#0000C0">[</font><font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
                    <font color="#0000C0">[</font><font color="#0080C0">60</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">50</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">]</font>
                <font color="#0000C0">)</font>
            <font color="#0000C0">)</font><font color="#000000"></font></pre>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

</code>

<p> ... and for multiple sets we might do the following: </p>

<code>
<table width="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="#B82619">
	<tr>
		<td>
			<table cellpadding="5" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
				<tr>
					<td valign="top">

<pre><font color="#000000">x</font><font color="#0000C0">.</font><font color="#000000">setData</font><font color="#0000C0">(</font>
                <font color="#0000C0">(</font>
                    <font color="#0000C0">[</font><font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
                    <font color="#0000C0">[</font><font color="#0080C0">60</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">50</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">]</font>
                <font color="#0000C0">)</font><font color="#0000C0">,</font>
                <font color="#0000C0">(</font>
                    <font color="#0000C0">[</font><font color="#0080C0">0</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
                    <font color="#0000C0">[</font><font color="#0080C0">30</font><font color="#0000C0">,</font> <font color="#0080C0">100</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">]</font>
                <font color="#0000C0">)</font>
            <font color="#0000C0">)</font><font color="#000000"></font></pre>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

</code>


	</body>
	<hr>
    <table width="100%">
        <tr>
            <td>
                	<a href="area.html">&lt;--previous</a> |
	<a href="../index.html">contents</a> |
	<a href="hlc.html">next--&gt;</a> 

            </td>
            <td align="right">
                (12/31/03)
            </td>
        </tr>
    </table>
	<center> PyGDChart User's Manual </center>
</html>