SHOW3

The SHOW3 procedure combines an image, a surface plot of the image data, and a contour plot of the images data in a single tri-level display.

This routine is written in the IDL language. Its source code can be found in the file show3.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

SHOW3, Image [, X, Y]

Arguments

Image

The two-dimensional array to display.

X

A vector containing the X values of each column of Image . If the X argument is omitted, columns have values 0, 1, ..., n columns-1.

Y

A vector containing the Y values of each row of Image . If the Y argument is omitted, rows have values 0, 1, ..., n rows-1.

Keywords

INTERP

Set this keyword to use bilinear interpolation on the pixel display. This technique is slightly slower, but for small images, it makes a better display.

E_CONTOUR

Set this keyword equal to an anonymous structure containing additional keyword parameters that are passed to the CONTOUR procedure. Tag names in the structure should be valid keyword arguments to CONTOUR, and the values associated with each tag should be valid keyword values.

E_SURFACE

Set this keyword equal to an anonymous structure containing additional keyword parameters that are passed to the SURFACE procedure. Tag names in the structure should be valid keyword arguments to SURFACE, and the values associated with each tag should be valid keyword values.

SSCALE

Reduction scale for surface. The default is 1. If this keyword is set to a value other than 1, the array size is reduced by this factor for the surface display. That is, the number of points used to draw the wire-mesh surface is reduced. If the array dimensions are not an integral multiple of SSCALE, the image is reduced to the next smaller multiple.

Example

A = BESELJ(SHIFT(DIST(30,20), 15, 10)/2.,0)
; Create a dataset.

SHOW3, A ; Show it with default display.

SHOW3, A, SQRT(FINDGEN(30)) ; Specify X axis proportional to square root of values.

SHOW3, A, E_CONTOUR={C_CHARSIZE:2, DOWN:1}
; Label CONTOUR lines with double size characters, and include downhill tick marks.

SHOW3, A, E_SURFACE={SKIRT:-1, ZRANGE:[-2,2]}
; Draw a surface with a skirt and scale Z axis from -2 to 2.

See Also

CONTOUR , SURFACE