Basic example 6
This is an introductory example that shows how to position
objects on an output device and how to change
their sizes. A simple color table is also defined
and used for changing the color of a curve in an
XyPlot.
This module demonstrates how to create an XyPlot object and a
TextItem object, and then draw them at different positions and scales
on a plot. The example also defines procedures for drawing, positioning,
and scaling plot objects and text objects.
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 example is called
basic06c.c.
The HLU FORTRAN program that generates this example is called
basic06f.f.
The NCL program that generates this plot is called
basic06n.ncl.
The data for this plot is generated internally by the example code.
The examples are installed in the following locations:
- $NCARG_LIB/ncarg/hluex/basic/basic06c.c
- $NCARG_LIB/ncarg/hluex/basic/basic06f.f
- $NCARG_LIB/ncarg/nclex/basic/basic06n.ncl
You can copy this example and run it by typing
"ng4ex basic06n",
"ng4ex basic06c", or "ng4ex basic06f".
A copy of the source file
will be placed in your current working directory and
automatically run for you.
Quick Start Guide Control Panel
NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?
$Revision: 1.8 $ $Date: 1999/03/23 18:28:11 $