Table of NCAR Graphics examples

This table lists all of the available NCAR Graphics 4.1 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.

Name Resource
File
C/NCL/
Fortran
Description
ap01ap01.res C/NCL/Fortran App objects and resources.
basic01 none C/NCL/Fortran How to create a simple plot using defaults.
basic02 none C/NCL/Fortran How to set the size of a plot and how to draw multiple plots on a single frame.
basic03 basic03.res C/NCL/Fortran How to set resources for a plot.
basic04 none C/NCL/Fortran How to draw to different output devices (NCGM, file, X Window, etc.).
basic05 none C/NCL/Fortran How to manipulate a colormap.
basic06 none C/NCL/Fortran How to size and position objects.
basic07 basic07.res C/NCL/Fortran How to select a workstation device.
basic08 none C/NCL/Fortran How to draw an object outside its viewport.
basic09 none C/NCL/Fortran How to generate all the available fonts in NCAR Graphics
cn01 cn01.res C/NCL/Fortran How to draw a contour plot using default settings.
cn02 cn02.res C/NCL/Fortran How to set basic features of a ContourPlot object.
cn03 cn03.res C/NCL/Fortran How to overlay a ContourPlot on a LogLinPlot.
cn04 cn04.res C/NCL/Fortran How to put multiple contour plots on a single frame.
cn05 none C/NCL/Fortran How to create a map and contour overlay animation.
cn06 none C/NCL/Fortran How to create contour plots of NetCDF temperature data.
cn07 none C/NCL/Fortran How to create contour plots of NetCDF geo-potential height.
cn08 none C/NCL/Fortran How to draw a ContourPlot animation of vertical temperature profile.
cn09 none C/NCL/Fortran How to draw a ContourPlot of NetCDF surface pressure data.
cn10 none C/NCL/Fortran How to refine a contour plot.
cn11 cn11.res C/Fortran How to mix low level and high level utilities.
cn12 cn12.res C/NCL/Fortran How to draw filled contours over a map of Africa.
cn13 cn13.res C/NCL/Fortran How to do inverse map transformations.
cn14 none C/NCL/Fortran How to draw wind speeds overlayed on a map.
cn15 none C/NCL/Fortran How to draw contours and xy plots on the same frame.
cn16 none C/NCL/Fortran How to combine vector fill contour plot, raster contour plot, and map plot on the same frame.
cn17 cn17.res C/NCL/Fortran How to draw a restricted contour plot over a satellite view projection.
lb01 lb01.res C/NCL/Fortran How to create a labelbar using default settings.
lb02 lb02.res C/NCL/Fortran How to create a labelbar with the default colormap.
lg01 lg01.res C/NCL/Fortran How to create a legend using defaults.
lg02 lg02.res C/NCL/Fortran How to create a legend and specify marker types.
lg03 lg03.res C/NCL/Fortran How to create a legend and specify line types.
mp01 mp01.res C/NCL/Fortran How to use basic MapPlot capabilities.
mp02 mp02.res C/NCL/Fortran How to control individual map areas.
mp03 mp03.res C/NCL/Fortran How to use masking with maps.
mp04 mp04.res C/NCL/Fortran How to add textual annotations to a map.
mp05 mp05.res C/NCL/Fortran How to create the ten different map projections.
nm01 none C/NCL/Fortran How to do simple natural neighbor linear interpolation.
nm02 none C/NCL/Fortran How to do simple natural neighbor linear regridding.
nm03 nm03.res C/NCL/Fortran How to retrieve aspects and slopes of an interpolation.
nm04 none C/NCL/Fortran How to do simple 3D interpolation.
nm05 none C/NCL/Fortran How to vary the exponent of the distances in a 2D interpolation.
nm06 none C/NCL/Fortran How to do smoothing in a 2D interpolation.
nm07 none NCL How to do 1D interpolation using splines under tension.
nm08 none NCL How to do a 1D interpolation of a periodic function.
nm09 none NCL How to do a 1D interpolation using a smoothing spline.
nm10 none NCL How to do interpolation of parametric curve.
nm11 none NCL How to do interpolation of closed parametric curve.
nm12 none NCL How to do 2D interpolation of rectangular data.
nm13 none NCL How to approximate a cubic spline for 1-D data.
nm14 none NCL How to approximate function values using different weights.
nm15 none NCL How to approximate a cubic spline for 1-D data.
nm16 none NCL How to approximate a cubic spline for 2-D data.
nm17 none NCL How to approximate a cubic spline for 3-D data.
nm18 none NCL How to approximate a cubic spline for 3-D data.
nm19 none NCL How to approximate a cubic spline surface for 2-D data.
pr01none C/NCL/Fortran How to draw basic primitives.
pr02 pr02.res C/NCL/Fortran How to draw basic primitives and change some of their attributes.
pr03 pr03.res C/NCL/Fortran How to draw primitives in NDC space and do clipping.
pr04 pr04.res C/NCL/Fortran How to draw primitives overlayed on a MapPlot object.
pr05 pr05.res C/NCL/Fortran How to draw primitives into an IrregularPlot object.
st01 st01.res C/NCL/Fortran How to create a streamline plot with default settings.
st02 st02.res C/NCL/Fortran How to create line-drawn streamline arrows.
st03 st03.res C/NCL/Fortran How to overlay streamlines on a map projection.
st04 st04.res C/NCL/Fortran How to overlay streamlines of vector data over a map projection.
ti01 ti01.res C/NCL/Fortran How to create a main title with default settings.
ti02 ti02.res C/NCL/Fortran How to create a main title and X and Y axis titles with default settings.
ti03 ti03.res C/NCL/Fortran How to set Title font, color, and size resources.
tm01 tm01.res C/NCL/Fortran How to create a TickMark object with default settings.
tm02 tm02.res C/NCL/Fortran How to create a TickMark object with bottom and left ticks turned on.
tm03 tm03.res C/NCL/Fortran How to reverse and change TickMark style.
tx01 tx01.res C/NCL/Fortran How to create a TextItem object with default settings.
tx02 tx02.res C/NCL/Fortran How to create text in a filled colored font with a bounding box.
tx03 tx03.res C/NCL/Fortran How to set the text background fill color.
tx04 none C/NCL/Fortran How to use function codes to set text characteristics.
tx05 none C/NCL/Fortran How to text height and angles.
tx06 none C/NCL/Fortran How to set text justification.
tx07 none C/NCL/Fortran How to set text spacing and aspect ratio.
tx08 none C/NCL/Fortran How to create a TextItem annotation.
vc01 vc01.res C/NCL/Fortran How to create a vector plot with default settings.
vc02 vc02.res C/NCL/Fortran How to create line-drawn vector arrows
vc03 vc03.res C/NCL/Fortran How to change the appearance of filled vector arrows.
vc04 vc04.res C/NCL/Fortran How to rotate a vector plot 90 degrees.
vc05 vc05.res C/NCL/Fortran How to overlay a vector plot on a map plot.
vc06 vc06.res C/NCL/Fortran How to use a scalar field to determine color of arrow fill.
vc07 vc07.res C/NCL/Fortran How to overlay vectors and contours on a MapPlot.
vc08 none C/NCL/Fortran How to plot vectors and color them by wind speed.
vc09 vc09.res C/NCL/Fortran How to do a vector animation using vectors and color contours of wind, temperature, and pressure
xy01 xy01.res C/NCL/Fortran How to create an XyPlot using default settings.
xy02 xy02.res C/NCL/Fortran How to set XyPlot resources using a resource file.
xy03 xy03.res C/NCL/Fortran How to set resources and axis coordinates.
xy04 xy04.res C/NCL/Fortran How to create an XyPlot with multiple lines.
xy05 xy05.res C/NCL/Fortran How to create an XyPlot with multiple lines using a CoordArrTable object.
xy06 xy06.res C/NCL/Fortran How to use multiple lines, external data, and legends.
xy07 xy07.res C/NCL/Fortran How to create a scattergram.
xy08 xy08.res C/NCL/Fortran How to use irregular points to set a plot transformation.
xy09 xy09.res C/NCL/Fortran How to set axis styles.
xy10 xy10.res C/NCL/Fortran How to overlay an XyPlot on a MapPlot.
xy11 none C/NCL/Fortran How to draw an XyPlot in an X window and 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 C/NCL/Fortran How to manipulate XyPlot data.
xy15 xy15.res C/NCL/Fortran How to create a set of 4 'stacked' XyPlots.
xy16 none C/NCL/Fortran How to draw three lines with different axes
xy17 none C/NCL/Fortran How to draw three stacked plots sharing the same X axis


Quick Start Guide Control Panel

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


$Revision: 1.36 $ $Date: 1999/03/24 17:48:46 $