Table of NCAR Graphics examples

This table lists all of the available NCAR Graphics 4 examples, gives a brief description of what the example shows, and provides links to the example code, resource files, and more in-depth discussions.

The first column contains the name of the example. Click on this entry to link to the output graphic and a discussion about the example.

The second column contains the name of the resource file (if any) associated with the example. Click on this entry to view the resource file.

The third entry contains links to the C, NCL, and Fortran source codes for the example if they exist. Click on C, to view the C source code, NCL to view the NCL source script, or Fortran to view the FORTRAN source code.

You can use the ng4ex utility to copy, compile, and run any of these examples in your local directory.

        | Resource    | C/NCL/  |            
Name    | File        | Fortran | Description  
--------------------------------------------------------------------------------
ap01    | ap01.res    | C/   /  | App objects and resources.
        |             |         | 
--------------------------------------------------------------------------------
basic01 | none        | C/NCL/  | How to create a simple plot using defaults.
        |             | Fortran | 
--------------------------------------------------------------------------------
basic02 | none        | C/NCL/  | How to set the size of a plot and how to 
        |             | Fortran | draw multiple plots on a single frame.
--------------------------------------------------------------------------------
basic03 | basic03.res | C/NCL/  | How to set resources for a plot.
        |             | Fortran | 
--------------------------------------------------------------------------------
basic04 | none        | C/NCL/  | How to draw to different output devices (NCGM
        |             | Fortran | file, X Window, etc.).
--------------------------------------------------------------------------------
basic05 | none        | C/NCL/  | How to manipulate a colormap.
        |             | Fortran | 
--------------------------------------------------------------------------------
basic06 | none        | C/NCL/  | How to size and position objects.
        |             | Fortran | 
--------------------------------------------------------------------------------
basic07 | basic07.res | C/NCL/  | How to select a workstation device.
        |             | Fortran | 
--------------------------------------------------------------------------------
cn01    | cn01.res    | C/NCL/  | Drawing a contour plot using default 
        |             | Fortran | settings.
--------------------------------------------------------------------------------
cn02    | cn02.res    | C/NCL/  | Basic features of a ContourPlot object.
        |             | Fortran | 
--------------------------------------------------------------------------------
cn03    | cn03.res    | C/   /  | Overlaying a ContourPlot on a LogLinPlot.
        |             | Fortran | 
--------------------------------------------------------------------------------
cn04    | cn04.res    | C/NCL/  | Multiple contour plots on a single frame.
        |             | Fortran | 
--------------------------------------------------------------------------------
cn05    | none        |  /NCL/  | Creating a map and contour overlay animation.
        |             |         | 
--------------------------------------------------------------------------------
cn06    | none        |  /NCL/  | Creating contour plots of NetCDF temperature 
        |             |         | data.
--------------------------------------------------------------------------------
cn07    | none        |  /NCL/  | Creating contour plots of NetCDF 
        |             |         | geo-potential height.
--------------------------------------------------------------------------------
cn08    | none        |  /NCL/  | ContourPlot animation of vertical temperature 
        |             |         | profile.
--------------------------------------------------------------------------------
cn09    | none        |  /NCL/  | ContourPlot of NetCDF surface pressure data.
        |             |         | 
--------------------------------------------------------------------------------
cn10    | none        |  /NCL/  | Refine a contour plot.
        |             |         | 
--------------------------------------------------------------------------------
cn11    | cn11.res    | C/   /  | Mixing low level and high level utilities.
        |             | Fortran | 
--------------------------------------------------------------------------------
lb01    | lb01.res    | C/NCL/  | How to create a labelbar using default 
        |             | Fortran | settings.
--------------------------------------------------------------------------------
lb02    | lb02.res    | C/NCL/  | How to create a labelbar with the default 
        |             | Fortran | colormap.
--------------------------------------------------------------------------------
lg01    | lg01.res    | C/NCL/  | How to create a legend using defaults.
        |             | Fortran | 
--------------------------------------------------------------------------------
lg02    | lg02.res    | C/NCL/  | How to create a legend and specify marker 
        |             | Fortran | types.
--------------------------------------------------------------------------------
lg03    | lg03.res    | C/NCL/  | How to create a legend and specify line 
        |             | Fortran | types.
--------------------------------------------------------------------------------
mp01    | mp01.res    | C/NCL/  | How to use basic MapPlot capabilities.
        |             | Fortran | 
--------------------------------------------------------------------------------
mp02    | mp02.res    | C/NCL/  | How to control individual map areas.
        |             | Fortran | 
--------------------------------------------------------------------------------
mp03    | mp03.res    | C/NCL/  | How to use masking with maps.
        |             | Fortran | 
--------------------------------------------------------------------------------
mp04    | mp04.res    | C/   /  | How to add textual annotations to a map.
        |             | Fortran | 
--------------------------------------------------------------------------------
ti01    | ti01.res    | C/NCL/  | How to create a main title with default 
        |             | Fortran | settings.
--------------------------------------------------------------------------------
ti02    | ti02.res    | C/NCL/  | How to create a main title and X and Y axis 
        |             | Fortran | titles with default settings.
--------------------------------------------------------------------------------
ti03    | ti03.res    | C/NCL/  | How to set Title font, color, and size 
        |             | Fortran | resources.
--------------------------------------------------------------------------------
tm01    | tm01.res    | C/NCL/  | How to create a TickMark object with default 
        |             | Fortran | settings.
--------------------------------------------------------------------------------
tm02    | tm02.res    | C/NCL/  | How to create a TickMark object with bottom 
        |             | Fortran | and left ticks turned on.
--------------------------------------------------------------------------------
tm03    | tm03.res    | C/NCL/  | How to reverse and change TickMark style.
        |             | Fortran | 
--------------------------------------------------------------------------------
tx01    | tx01.res    | C/NCL/  | How to create a TextItem object with 
        |             | Fortran | default settings.
--------------------------------------------------------------------------------
tx02    | tx02.res    | C/NCL/  | Creating text in a filled colored font with a 
        |             | Fortran | bounding box.
--------------------------------------------------------------------------------
tx03    | tx03.res    | C/NCL/  | How to set the text background fill color.
        |             | Fortran | 
--------------------------------------------------------------------------------
tx04    | none        | C/NCL/  | How to use function codes to set text 
        |             | Fortran | characteristics.
--------------------------------------------------------------------------------
tx05    | none        | C/NCL/  | How to text height and angles.
        |             |         | 
--------------------------------------------------------------------------------
tx06    | none        | C/NCL/  | How to set text justification.
        |             |         | 
--------------------------------------------------------------------------------
tx07    | none        | C/NCL/  | How to set text spacing and aspect ratio.
        |             |         | 
--------------------------------------------------------------------------------
tx08    | none        |  /   /  | Creating a TextItem annotation.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy01    | xy01.res    | C/NCL/  | How to create an XyPlot using default 
        |             | Fortran | settings.
--------------------------------------------------------------------------------
xy02    | xy02.res    | C/NCL/  | How to set XyPlot resources using a resource 
        |             | Fortran | file.
--------------------------------------------------------------------------------
xy03    | xy03.res    | C/NCL/  | How to set resources and axis coordinates.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy04    | xy04.res    | C/NCL/  | How to create an XyPlot with multiple lines.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy05    | xy05.res    | C/NCL/  | How to create an XyPlot with multiple lines 
        |             | Fortran | using a CoordArrTable object.
--------------------------------------------------------------------------------
xy06    | xy06.res    | C/NCL/  | Using multiple lines, external data, and 
        |             | Fortran | legends.
--------------------------------------------------------------------------------
xy07    | xy07.res    | C/NCL/  | Creating a scattergram.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy08    | xy08.res    | C/NCL/  | Using irregular points to set a plot
        |             | Fortran | transformation.
--------------------------------------------------------------------------------
xy09    | xy09.res    | C/NCL/  | Setting axis styles.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy10    | xy10.res    | C/NCL/  | Overlaying an XyPlot on a MapPlot.
        |             | Fortran | 
--------------------------------------------------------------------------------
xy11    | none        | C/NCL/  | How to draw an XyPlot in an X window and
        |             | Fortran | an NCGM file.
--------------------------------------------------------------------------------
xy12    | none        | C/   /  | How to incorporate the HLU library with your 
        |             |         | own X interface.
--------------------------------------------------------------------------------
xy13    | xy13.res    | C/   /  | How to interactively retrieve coordinate 
        |             |         | locations from a plot.
--------------------------------------------------------------------------------
xy14    | none        |  /NCL/  | How to manipulate XyPlot data.
        |             |         | 
--------------------------------------------------------------------------------
xy15    | xy15.res    | C/   /  | This example illustrates the creation of a 
        |             |         | set of 4 'stacked' XyPlots.
--------------------------------------------------------------------------------

Quick Start Guide Control Panel

NG4 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?


$Revision: 1.9 $ $Date: 1995/07/26 23:23:44 $