OOF2: The Manual

Name

Contour Line (PlainContourDisplay) — Draw contour lines for the given output data.

Synopsis

PlainContourDisplay(when,what,where,min,max,levels,nbins,width,color)

Details

  • Base class: DisplayMethod
  • Parameters:

    when
    Time at which to plot Type: A floating point number, or the earliest or latest time.
    what
    Quantity to be plotted Type: An Output object whose value is a real number.
    where
    Plot at displaced or original position? Type: An Output object whose value is a position in the xy plane.
    min
    level of lowest contour, or 'automatic' Type: An integer, a real number, or the string 'automatic'.
    max
    level of highest contour, or 'automatic' Type: An integer, a real number, or the string 'automatic'.
    levels
    number of levels or list of levels (in []) Type: An integer, or a list of numbers.
    nbins
    number of internal subdivisions per element Type: Integer.
    width
    line width Type: An integer in the range [0, 10].
    color
    line color Type: An object of the Color class.

Description

PlainContourDisplay draws a contour plot of a ScalarOutput quantity on a Mesh with lines at specified contour values.

what is the value to be plotted. [32]

where determines whether the plot is drawn on the original undistorted mesh, at the actual displaced elements, or at enhanced displaced positions.

min and max specify the range of the data to be plotted. One or both of them may be set to automatic, in which case they are determined by the actual limits of the data.

levels determines the number of contour lines to be drawn. It can be either an integer, in which case the specified number of lines will be evenly spaced between min and max, or it may be a Python list of real numbers specifying the contour values, e.g,[0.0, 0.1, 0.2].

The OOF2 contour plotting routines divide each element into a number of small triangles (bins), and linearly interpolate the plotted quantity within the bins. nbins is the number of bins along the edge of a Mesh element. A small value of nbins will lead to a faster but cruder plot.nbins must be at least 1.



[32] I don't know. Third base!