Tornado API Reference : GUI Tcl Library (UNIX)
barchart - bar charting object
chartCreate - create a new Tcl chart
chartSetQuantities - establish a set of quantities to display in a chart
chartPost - post a chart
chartTitleSet - set the title of a chart window
chartDestroy - destroy a chart
chartUnpost - removed a chart from the display
chartSetValues - set the values of the quantities contained in a chart
This library contains all the bar chart Tcl functions for the UNIX GUI.
chartCreate - create a new Tcl chart
UNIX GUI
chartCreate name [-destroy proc] [-scale] [-valuefmt fmt] [-size w h] [-eltsize h]
A new chart is created with the specified name. The size of the chart window may be specified in pixels with the -size specification. The vertical size allotted to each element in the chart may be specified by -eltsize. To display values in the chart, it must first be configured with chartSetQuantities and chartSetValues, then posted to the screen with chartPost.
If -scale is given, the maximum and minimum values of the quantities of the chart is be drawn beneath the chart bars.
If -valuefmt is given, fmt is used as a printf( ) style format for displaying the value of the quantity inside the bar itself.
If -destroy is given, proc is used as the name of a Tcl procedure that is invoked if the chart is destroyed by the user. The procedure is invoked with one argument: the name of the chart.
barchart, chartSetQuantities, chartSetValues, chartPost, chartDestroy
chartSetQuantities - establish a set of quantities to display in a chart
UNIX GUI
chartSetQuantities name {{qname qmin qmax}...}
The named chart is directed to display the list of quantities given. Each item in the quantity list is itself a three-element list containing the quantity name and its minimum and maximum value. Any previous quantities the chart contained are discarded. The initial values of the quantities are each set to qmin.
barchart, chartSetValues, chartCreate, chartPost
chartPost - post a chart
UNIX GUI
chartPost name
The named chart is posted (made visible on the display). It is not an error to attempt to post a nonexistent chart.
barchart, chartUnpost, chartCreate
chartTitleSet - set the title of a chart window
UNIX GUI
chartTitleSet name title
The titlebar text of the named chart is set to title.
barchart, chartCreate, chartPost
chartDestroy - destroy a chart
UNIX GUI
chartDestroy name
The named chart is destroyed, and removed from the screen if visible.
barchart, chartUnpost, chartCreate
chartUnpost - removed a chart from the display
UNIX GUI
chartUnpost name
The named chart is removed from the display. It is not an error to attempt to unpost a nonexistent chart.
barchart, chartPost, chartCreate
chartSetValues - set the values of the quantities contained in a chart
UNIX GUI
chartSetValues name {{value [min max mark1 mark2]}... }
Within the named chart, the quantities are assigned values from the supplied value list, in the order the quantities were assigned to the chart by chartSetQuantities. Excess values are ignored and quantities that are not assigned values by this command are undisturbed. The chart is redrawn to reflect the new values immediately. Each item in the value list is itself a list. The first element is the new value of the bar; the remaining four entries (min, max, mark1, mark2) are optional. If specified, they provide new minimum and maximum scale values for the bar, and new values for the "marks" (the little triangles that go above (mark1) and below (mark2) the bar).
barchart, chartSetQuantities, chartCreate