Element: ContourPlot.

Icon: 

Text: A contour display of a scalar field in Z

Description: A ContourPlot is a drawing element that visualizes a real scalar field defined in a rectangular area of the plane. For this purpose, the element divides the rectangle using a grid and uses this to draw a number of contour lines of the field in the rectangle. The element automatically fills the resulting regions using one of several possible colors, depending on the value of the field in the region (between a minimum and a maximum) and on the selected color scheme. 

Table of properties

Name Description Values accepted
Configuration
Minimum X The minimum value in the X axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Maximum X The maximum value in the X axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Minimum Y The minimum value in the Y axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Maximum Y The maximum value in the Y axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Z The array of real values for the field in each cell. A two-dimensional array [m][n] of type double, where m and n indicate the number of cells in the X and Y axes, respectively.
Autoscale Z Whether to automatically compute the extrema of the displayed Z values.  A boolean variable or one of the constants true or false.
Minimum Z The smallest value in Z that will be translated into a color in the scale (Autoscale Z must be false). Any constant or variable of type double or int.
Maximum Z The largest value in Z that will be translated into a color in the scale (Autoscale Z must be false). Any constant or variable of type double or int.
Graphical Aspect
Levels Number of contour lines to draw in the range [Minimum Z, Maximum Z]. Any constant or variable of type int.
Color Mode The scheme used to assign a color to each of the values of the field.

One of the following constants, corresponding to a different preset color scheme.

  • SPECTRUM.
  • GRAYSCALE.
  • DUALSHADE.
  • REDBLUESHADE.
  • RED.
  • GREEN.
  • BLUE.
  • BLACK.

It is also possible to provide a one-dimensional array of type Object with the palette of colors to use. Each element of this array must be an object of the class java.awt.Color. Levels will automatically take the value of the length of this array.

Floor Color The color to assign to values below Minimum Z. See the values for the Line Color property.
Ceil Color The color to assign to values above Maximum Z. See the values for the Line Color property.
Show Lines Whether to draw the contour lines themselves. A boolean variable or one of the constants true or false.
Line Color The color used to draw the lines. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

Visible The visibility of the element. A boolean variable or one of the constants true or false.