wiki:rp_xml_ele_histogram

Version 1 (modified by mmc, 17 years ago) (diff)

initial page

<histogram>

A histogram object represents a list of values at various x-axis points. Each point can have a bin width.

  <histogram id="single">
    <about>
      <label>Single dataset</label>
      <description>This is an example of a single histogram.</description>
    </about>
    <xaxis>
      <label>Time</label>
      <description>Time during the experiment.</description>
      <units>s</units>
      <marker>
        <at>5</at>
        <label>Look here</label>
        <style>-foreground red -linewidth 2</style>
       </marker>
    </xaxis>
    <yaxis>
      <label>Voltage v(11)</label>
      <description>Output from the amplifier.</description>
      <units>V</units>
    </yaxis>
    <component>
      <xhw>
1 0.99
2 0.34
4 0.57 2
6 0.22
7 0.11
       </xhw>
     </component>
   </histogram>

When a histogram is produced as an output result, its <about><label> is used to identify the result in the combobox used to select various results. The <about><description> is displayed in a tooltip when you mouse over the selector, giving a more detailed explanation of what this result represents. Similarly, the <xaxis><description> and <yaxis><description> pop up in a tooltip when you mouse over either axis. They give more information about the physical quantities being plotted.

The optional bin width is the third parameter on each line of the <xhw> section.

Note that the <xaxis> section can have one or more <marker> objects. Each marks an x-axis value with an optional label.