NCL > Application examples > Basic examples

Basic example 9

Shows all the available fonts

This is an introductory example that shows a table of all the available fonts in NCAR Graphics. This example can be created using HLU function calls or NCL. The names of the source files for this example are basic09c.c, basic09f.f, and basic09n.ncl.

Discussion

This module discusses how to create this plot using NCL or HLU C or FORTRAN calls. A resource file is not included with this example.

A detailed discussion of how this example works appears in its source code.

Creating the plot using HLU C library calls

The C program that generates this plot is called basic09c.c.

Creating the plot using HLU FORTRAN library calls

The FORTRAN program that generates this plot is called basic09f.f.

Creating the plot using NCL

The NCL script that generates this plot is called basic09n.ncl.

The data

No external data are used for this plot.

How to run this example

The examples are installed in the following locations:

  • $NCARG_ROOT/lib/ncarg/hluex/basic/basic09c.c
  • $NCARG_ROOT/lib/ncarg/hluex/basic/basic09f.f
  • $NCARG_ROOT/lib/ncarg/nclex/basic/basic09n.ncl
You can copy this example and run it by typing "ng4ex basic09f", "ng4ex basic09c", or "ng4ex basic09n". A copy of the source file will be placed in your current working directory, compiled, and automatically run for you.