NCL Website header
NCL Home > Documentation > HLUs > API

NhlDataPolygon

The Fortran name of this function is NhlFDataPolygon.

Given arrays containing the X and Y coordinates of points in data coordinate space, this function outputs an immediate-mode polygon connecting each of the points.


C Synopsis

#include <ncarg/hlu/hlu.h>
#include <hfile for Transform class object>

NhlErrorTypes NhlDataPolygon(
		int	pid,
                int     gsid,
		float 	*x,
		float	*y,
		int	n,
		)

Fortran Synopsis

      subroutine NhlFDataPolygon(pid, gsid, x, y, n, ierr)
      integer pid, gsid, n, ierr
      real x(n), y(n)

Arguments

pid (input)
Id of a Transform or Workstation object.
gsid (input)
Id of a GraphicStyle object.
x (input)
Array of X-Axis coordinate values in data coordinate space.
y (input)
Array of Y-Axis coordinate values in data coordinate space.
n (input)
Number of elements in the coordinate arrays x and y.
ierr (output, Fortran only)
Error code.

Types

Type name:		NhlTErrorTypes
Definition:
typedef enum _NhlErrType{
	NhlFATAL	= -4,	/* "FATAL"	*/
	NhlWARNING	= -3,	/* "WARNING"	*/
	NhlINFO		= -2,	/* "INFO"	*/
	NhlNOERROR	= -1	/* "NOERROR"	*/
} NhlErrorTypes;