NhlDataPolygon
This procedure is used to draw a polygon using data coordinates.
(See NhlDataPolygon.)
Synopsis
procedure NhlDataPolygon(
objs[*]: graphic,
style[*]:graphic
x[*]: float,
y[*]: float
)
Arguments
- objs
- An array of HLU plot objects.
- style
- Either one HLU style object or an array with the same dimensions
as the objs parameter.
- x
- The X data coordinates of the polygon in data coordinates.
- y
- The Y data coordinates of the polygon in data coordinates.
Description
NhlDataPolygon draws the polygon defined by
the pair of vectors x and y using either a
single style object or the corresponding style object from the
style parameter. The vectors x and y
contain values in data coordinates. The coordinates are mapped
using the HLU object's data transformation and drawn as a polygon
clipped to the viewports of each HLU plot object in the objs
array. The difference between the NCL version and the HLU version
is that the NCL version draws the polygon over one or more HLU plot
objects using one or more styles, and the NCL version does not need
the length of the x and y parameters because this
information is inherent in NCL data. In the HLU version, NULL can be
used to use the default graphic style object. In NCL, however, the
default style object must be retrieved from the workstation parent
using the
wkDefGraphicStyleId
resource and the
getvalues
statement. For more information on controlling how the polygon is drawn
and filled, see the
GraphicStyle
class description.
Reference Manual Control Panel
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?
$Revision: 1.5 $ $Date: 1998/06/15 21:28:33 $