
DISCRETE CONTOUR PLOTName:
The discrete contour plot is a variation of the contour plot. Instead of drawing an isolines, a box is drawn at each square on the grid. The average response of the four points of this box is used to determine the level for that box. Levels are distinguished by the fill color of the box. There is currently no "smoothing" of the color within the boxes to match neighboring boxes. If you want a smoother plot, then increase the number of points on the grid. Both the levels and the colors to be used to identify the levels are set by the user. The discrete contour plot is also referred to as a level plot or an image map.
<SUBSET/EXCEPT/FOR qualification> where <z> is the response (= dependent) variable; <x> is one horizontal axis variable; <y> is the other horizontal axis variable; <z0> is the variable of desired contour values; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Although you can use various types of region fill patterns, we typically just want solidfilled regions with the color denoting the level.
LET NTOT = 41*41 LET X = SEQUENCE 4 0.2 4 FOR I = 1 1 NTOT LET Y = SEQUENCE 4 41 0.2 4 LET Z = X**2 + Y**2  2*X*Y LET Z0 = SEQUENCE 5 5 40 . LIMITS 4.0 4.0 TIC MARK OFFSET 0 0 MAJOR TIC MARK NUMBER 9 MINOR TIC MARK NUMBER 1 REGION COLOR G90 G80 G70 G60 G50 G40 G30 G20 G10 . TITLE OFFSET 2 TITLE X**2 + Y**2  2*X*Y DISCRETE CONTOUR PLOT Z X Y Z0
 
Date created: 12/08/2008 Last updated: 12/04/2023 Please email comments on this WWW page to alan.heckert@nist.gov. 