
NCL > Application examples > Basic examples
MapPlot example 4
How to add textual annotations to a map
This example can be created using HLU C library calls, HLU FORTRAN library calls, and NCL. It demonstrates how to create annotations on a MapPlot. The name of the example codes that create this plot are mp04c.c, mp04f.f, and mp01n.ncl.
Discussion
This module demonstrates how to create a MapPlot object with annotations for major cities on the globe. The example creates a multiframe sequence that displays as a rotating globe. Resources for this example are set in a resource file called mp04.res.A detailed discussion of how this example works appears in its source code.
Creating the plot using HLU C library calls
The HLU C program that generates this plot is called mp04c.c.
Creating the plot using HLU FORTRAN library calls
The HLU FORTRAN program that generates this plot is called mp04f.f.
Creating the plot using NCL
The NCL script that generates this plot is called mp04n.ncl.
The data
This plot does not use any external data.
How to run this example
The examples are installed in the following locations:
- $NCARG_ROOT/lib/ncarg/hluex/mapplot/mp04c.c
- $NCARG_ROOT/lib/ncarg/hluex/mapplot/mp04f.f
- $NCARG_ROOT/lib/ncarg/nclex/mapplot/mp04n.ncl