CONVERT_COORD Function

Converts coordinates from one coordinate system to another.

Usage

Input Parameters

Returned Value

Keywords

Discussion

Example

xdata = [.1, .2, .5, .8, .9, .5]

ydata = [.3, .6, .9, .6, .3, .1]

PLOT, xdata, ydata

; Establish data coordinate system

point = CONVERT_COORD(0.5, 0.5, /Normal, /To_Data)

; Find data coordinate for the center of the window.

PRINT, 'X coord = ', point(0)

PRINT, 'Y coord = ', point(1)

PLOTS, point(0), point(1), Symsize = 5.0, Psym = -1

; Print the coordinates and plot a "+" symbol at the center of the window.

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.