Version 2 (modified by dkearney, 9 years ago) (diff)

updating location of example code for table


A table object is like a spreadsheet of values.

Energy Levels

If you store output data in a table with one column as energy and the other as string labels, Rappture will interpret the data as a series of energy levels and draw it as shown below. If one of the labels is "HOMO", then Rappture will draw the area underneath the HOMO level as shaded, indicating that the states are occupied.

      <label>Energy Levels</label>
    <column id="labels">
    <column id="energies">
    <data> 1  0.561
HOMO  2.24
3     5.05

You can see working code in the zoo of example's in the table example or on the hub in the directory /apps/rappture/examples/zoo/table.