1
<section id="dsp-tag-plotter" xmlns:xi="http://www.w3.org/2001/XInclude">
2
<title><plotter></title>
4
<para>This element is for plotting graphs. It represents a specialized handy
5
frontend for the <link linkend="dsp-tag-canvas"><canvas></link> by
6
taking value by value.</para>
11
<imagedata fileref="gfx/dsp-plotter" format="PNG"/>
17
<section><title>Attributes</title>
19
<informaltable frame="topbot">
26
<entry>Default Value</entry>
27
<entry>Description</entry>
33
<entry valign="top">bg-color</entry>
34
<entry valign="top">color</entry>
35
<entry valign="top"></entry>
36
<entry valign="top">The background color.</entry>
39
<entry valign="top">color</entry>
40
<entry valign="top">color</entry>
41
<entry valign="top">navy</entry>
42
<entry valign="top">The plot color.</entry>
45
<entry valign="top">scale-bidir</entry>
46
<entry valign="top">boolean</entry>
47
<entry valign="top">false</entry>
48
<entry valign="top">Enables scaling of the lower boundary, so negative
49
values won't 'drop off'.</entry>
52
<entry valign="top">scale-holdmax</entry>
53
<entry valign="top">boolean</entry>
54
<entry valign="top">false</entry>
55
<entry valign="top">Enables a hold-function on the scaling. When the
56
scaling is changed because of large values, it will not return to
57
the default scaling once those large values have disappeared from
61
<entry valign="top">size</entry>
62
<entry valign="top">integer</entry>
63
<entry valign="top">50</entry>
64
<entry valign="top">The numbers of values stored in the history.</entry>
67
<entry valign="top">value</entry>
68
<entry valign="top">integer</entry>
69
<entry valign="top"></entry>
70
<entry valign="top">The next value to append to the history of values.
71
Values may range from <literal>0</literal> to
72
<literal>100</literal>, but if you supply values greater than
73
<literal>100</literal>, the graph will scale accordingly.</entry>
84
<section><title>Examples</title>
86
<programlisting><![CDATA[
87
<display bg-color="white" anchor="center" x="50%" y="50%">
89
<control id="sys" interface="ISystem:4i4p0jtvdz87qx44x2dm97ltj"/>
91
<plotter width="100" height="100" size="100" id="plotter" color="black"/>
96
Dsp.plotter.value = sys.cpu_load
99
add_timer(500, cpu_handler)
101
]]>]]><![CDATA[</script>