Line | |
---|
1 | <?xml version="1.0"?> |
---|
2 | <run> |
---|
3 | <tool> |
---|
4 | <title>histogram</title> |
---|
5 | <about>Example of a Rappture <histogram> object. |
---|
6 | |
---|
7 | histograms are a list of (x,y) data points, representing discrete samples of a function y(x). |
---|
8 | |
---|
9 | When you click the Simulate button, the inputs will be used to generate output histograms. |
---|
10 | </about> |
---|
11 | <command> |
---|
12 | tclsh @tool/histogram.tcl @driver |
---|
13 | </command> |
---|
14 | </tool> |
---|
15 | <input> |
---|
16 | <integer id="points"> |
---|
17 | <about> |
---|
18 | <label>Number of points</label> |
---|
19 | <description>Determines the number of data points in all output histograms.</description> |
---|
20 | </about> |
---|
21 | <min>2</min> |
---|
22 | <max>1000</max> |
---|
23 | <default>10</default> |
---|
24 | </integer> |
---|
25 | </input> |
---|
26 | <output> |
---|
27 | <histogram id="example"> |
---|
28 | <about> |
---|
29 | <label>Single dataset</label> |
---|
30 | <description>This is an example of a single histogram.</description> |
---|
31 | </about> |
---|
32 | <xaxis> |
---|
33 | <label>Time</label> |
---|
34 | <description>Time during the experiment.</description> |
---|
35 | <units>s</units> |
---|
36 | <marker> |
---|
37 | <at>5</at> |
---|
38 | <label>Look here</label> |
---|
39 | <style>-foreground red -linewidth 2</style> |
---|
40 | </marker> |
---|
41 | </xaxis> |
---|
42 | <yaxis> |
---|
43 | <label>Voltage v(11)</label> |
---|
44 | <description>Output from the amplifier.</description> |
---|
45 | <units>V</units> |
---|
46 | </yaxis> |
---|
47 | <component> |
---|
48 | <xy> |
---|
49 | 1 0.99 |
---|
50 | 2 0.34 |
---|
51 | 4 0.57 |
---|
52 | 6 0.22 |
---|
53 | 7 0.11 |
---|
54 | </xy> |
---|
55 | </component> |
---|
56 | </histogram> |
---|
57 | </output> |
---|
58 | </run> |
---|
Note: See
TracBrowser
for help on using the repository browser.