Primitives example 2
This example shows how to set up a GraphicStyle object to draw
polymarkers, polylines, and polygons, and then set resources to
change attributes--like color and line thickness--of these primitives.
This example demonstrates how to create the plot using HLU C library
calls, HLU FORTRAN library calls, and NCL. The names of the example
codes that create this plot are pr02c.c, pr02f.f, and pr02n.ncl.
Discussion
Resources are controlled through a resource file called
pr02.res.
A detailed discussion about how to create the plot appears in the
comments of the source code for the example.
The HLU C program that generates this plot is
called pr02c.c.
The HLU FORTRAN program that generates this plot is
called pr02f.f.
The HLU NCL program that generates this plot is
called pr02n.ncl.
The data are generated from within the program or script.
There are three ways to produce this example: by using a C program
(pr02c.c), a FORTRAN program (pr02f.f), or an NCL script (pr02n.ncl).
The examples are installed in the following locations:
- $NCARG_LIB/ncarg/hluex/primitives/pr02c.c
- $NCARG_LIB/ncarg/hluex/primitives/pr02f.f
- $NCARG_LIB/ncarg/nclex/primitives/pr02n.ncl
You can copy this example and run it by typing
"ng4ex pr02c",
"ng4ex pr02f", or "ng4ex pr02n". A copy of the source file will be
placed in your current working directory. The source code will be
compiled (if appropriate) and automatically run for you.
Quick Start Guide Control Panel
NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?
$Revision: 1.6 $ $Date: 1999/03/23 18:55:24 $