ContourCommand

From Flooxs
Revision as of 19:14, 20 December 2011 by Law (talk | contribs) (→‎Bugs and Missing Features)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Contour

contour - plot contours in the selected variable on a two-dimensional plot

Synopsis

contour

[ value=<n> ]
[ x=<n> ] [ y=<n> ] [ z=<n> ]
[ color=<n> ] [ symb=<n> ]
[ print ] [ gas ]

Description

The contour statement draws a contour in the [select.html selected] variable or a named data field at the value specified. Value must be specified in the range of the computed variable. For instance, if plotting log boron, the value should be in the range 10 to 20 and not 1e10 to 1e20. This statement assumes a [plot.2d.html plot.2d] has been specified and the screen has been set up for plotting a two dimensional picture. If this has not been done, the routine will probably produce garbage on the screen.

value
This floating parameter expresses the value that the contour line should be plotted at. If boron had been selected, a value of 1.0e16 would produce a line of constant boron concentration at that concentration.
x, y, z
These parameters specify the plane on which to do contouring. In two-dimensions, they need not be specified. In three dimensions, however, two of these must be specified to indicate the plane of calculation of the contour.
color
This parameter specifies the line color for the contour. It can be any color supported by the X11 hardware and named in the color data base.
symb
This allows the selection of symbol. Valid values are between 1 and 10. The symbol display can always be changed in the [BLTWindow.html blt window].
print
This option indicates that the contour values should be printed, instead of plotted. This will print a list of values. To return them as a list for further tcl processing, use the [slice.html slice] command.
gas
Plot contours in the gas mesh. This is usually skipped but can sometimes be important in debugging algorithms.

Examples

contour val=1e10

This command will draw a line at a isoconcentration of 1.0e10.

Bugs and Missing Features

This should probably check to make sure a plot.2d has been done. It is conceivable that this statement could produce floating point exceptions when a plot.2d has not been done. This is, to put it midly, annoying.

See Also

slice, plot.2d