Exploring Data in Three Dimensions

Contour Plot Properties

This section describes the property tabs associated with a contour plot. To access the rotating plot properties, right-click near the center of a plot, and select Plot Area Properties from the pop-up menu.

For a discussion of the Observations tab, see Chapter 6, "Exploring Data in Two Dimensions." For a discussion of the remaining tabs, see Chapter 9, "General Plot Properties."

The Contours Tab

The Contours tab controls attributes of the contours. You can use this tab to remove contours, create contours, and change the color or line styles of contours. The Contours tab is shown in Figure 7.18.

The Contours tab has two subtabs: the Contour Styles subtab and the Levels subtab.

Contour Levels
displays each contour in the plot. The contours are labeled by values of the Z variable. You can select one or more items in the list to change their properties or to remove them from the list.
Remove selected levels
removes contours that are selected in the Contour Levels list.
\longleftarrow (large left arrow)
applies the current set of properties to the contours selected in the Contour Levels list. You must click on the large left arrow to transfer the contour attributes to the selected items in the Contour Levels list, or to create new contours.
Contour Styles
specifies the contour colors and line styles. These attributes are not applied until you click the large left arrow (\longleftarrow).
Color
specifies a single color for the selected contour levels.
Blend
specifies a gradient colormap for a range of contour levels.
Style
specifies a line style for the selected contours.
Width
specifies a line width for the selected contours.
Levels
specifies the number and range of contour levels. These contours are created when you click the large left arrow (\longleftarrow).
Number
specifies the number of contours to create.
Minimum
specifies a value z_l used in the creation of new contours.
Maximum
specifies a value z_r used in the creation of new contours.

You can create a set of contours by using the Levels subtab, as shown in Figure 7.20. Let n be the value in the Number field, and let z_l and z_r be the values in the Minimum and Maximum fields. These values specify that the interval between contours is \delta = (z_r-z_l)/n.

When you click the large left arrow (\longleftarrow), contours are created for the levels z_i =   z_l + \delta/2 + \delta i, for i=0, ... ,(n-1). This implies that the first level is z_l + \delta/2 and the last level is z_r -   \delta/2. Note that no contours appear for the z_l and z_r levels, because levels for extreme values are often degenerate. (For example, if z=x^2+y^2 on the domain [-1,1]x [-1,1], then the minimum value of z is 0, and the contour for that level is a single point.)

If, instead, you know that you want the first contour to be at the level z_0 and you want the contour interval to be \delta, then it is straightforward to compute values of n, z_l, and z_r that satisfy those conditions. You can choose z_l = z_0 - \delta/2 and z_r = z_l + n \delta, where n is an integer.

If you want the contours to encompass all of your data, then you can compute n =   \lceil (z_{max} - z_l) / \delta \rceil, where z_{max} is the largest data value for the Z variable, and \lceil x \rceil is the least integer greater than x. You should also choose z_0 so that | z_0 - z_{min}|\leq \delta/2. For example, if the range of your data is [3,97], and you want a contour interval of \delta=10 with the first contour at z_0=5, then you can choose z_l = 5 - 10/2 = 0, n= \lceil (97-0)/10 \rceil = 10, and z_r = 0   + 10 * 10 = 100.

The Contour Options Tab

The Contour Options tab controls attributes of the contour plot. You can also use this tab to control the size of the grid used to construct contours. The Contour Options tab is shown in Figure 7.24.

Grid Sizes
specifies the resolution of the computational grid used to construct contours from the data. The algorithm that computes the surface uses a grid superimposed on the (X,Y) plane. This grid consists of evenly spaced subdivisions along the X and Y axes. Generally, having more subdivisions results in smoother contours, whereas having fewer subdivisions results in a rougher contours.
Show contour lines
specifies whether contours are shown.
Show contour values
specifies whether contour lines are labeled by the value of the Z axis variable.
Show contour areas
specifies whether the region between contours is filled with color.


ugthreedcontouroptions.png (6005 bytes)

Figure 7.24: The Contour Options Tab

Previous Page | Next Page | Top of Page