Primitives example 4

How to draw primitives into an IrregularPlot object

This example shows how to draw graphic primitives into an IrregularPlot object (and therefore using the IrregularTransformation). This example demonstrates how to create the plot using HLU library calls or NCL. The names of the example codes that create this plot are pr04c.c, pr04f.f, and pr04n.ncl.

Discussion

Resources are controlled through a resource file called pr04.res.

A detailed discussion about how to create the plot appears in the comments of the source code for the example.

Creating the plot using HLU C library calls

The HLU C program that generates this plot is called pr04c.c.

Creating the plot using HLU FORTRAN library calls

The HLU FORTRAN program that generates this plot is called pr04f.f.

Creating the plot using NCL

The HLU NCL program that generates this plot is called pr04n.ncl.

The data

The data are generated from within the program or script.

How to run this example

There are three ways to produce this example: by using a C program (pr04c.c), a FORTRAN program (pr04f.f), or an NCL script (pr04n.ncl). The examples are installed in the following locations:

You can copy this example and run it by typing "ng4ex pr04c", "ng4ex pr04f", or "ng4ex pr04n". 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.8 $ $Date: 1999/03/23 18:55:25 $