graph -- create and manipulate Tk widgets
capable of rendering MathViews figures.
graph pathName ?arg arg ...?MxtGrA MathViews interpreter created by the minterp command maintains a set of named
virtual figures. A Tk widgets created by the graph command can subscribe to a MathViews
figure. A graph widget subscribed to a
MathViews figure immediately displays any changes to the contents of that
figure. If the figure is cleared or deleted, the widget will appear blank.
Although a graph widget can display the
contents of a single MathViews figure, a figure can have multiple
graph widget subscribers -- this means
multiple graph widgets can simultaneously
render a single figure. The contents of a graph widget can change only if the underlying
figure changes. The figure, in turn, can only change if it is designated as the
current figure by MathViews interpreter and MathViews plotting
commands have been invoked against the figure. (see the documentation of
minterp for more
details on this issue).
The graph widget supports several
configuration properties. These options can be specified in any combination as
arguments to the configure option or as
arguments to the widget creation command.
configure -background
color sets the background color of the widget to color, where color is a Tk color specification.
configure -width
width -height height sets the dimensions of the widget. If only one dimension is specified, the widget is resized in a way that preservers the existing width-to-height ratio.
configure -figure
mvCmd figureName subscribe widget pathName to figure figureName managed by MathViews interpreter mvCmd. Since a Tcl interpreter may create any number of MathViews interpreters, both mvCmd and figureName are needed to uniquely identify the figure.
To query the values of all the properties, pass no arguments to the
configure option. To query the value of a
particular property, pass its name to the configure option. For example:
.g1 configure -widthwill return the width of graph widget .g1.
Last modified: Thu Nov 26 11:47:41 PST 1998