Alphabetical list of examples

Below is a table of all examples by name with a brief note on what the example shows. Detailed information is contained in the example source which can be accessed by clicking on the example name.
 
Name Description
bar1.py Illustrates how to draw bar charts.
bar2.py Illustrates how to draw a bar chart with a legend.
chkbay.py Draws contours on a triangular mesh.
clmdiv1.py Draws U.S. geographic climate divisions as polygonal areas.
clmdiv2.py Draws U.S. geographic climate divisions colored by third field.
cn01p.py Draws a simple contour using all defaults.
cn02p.py Draws a simple color filled contour.
cn05p.py Draws an animation of global surface temperature over a map.
cn12p.py Draws a color filled contour map over Africa.
cns01p.py Draws contours using dashed lines and user-specified labels.
coast1.py Draws the same map three times, showing the different resolutions
color1.py Draws all colors in user specified color maps.
color2.py Illustrates how to use named colors.
color3.py Draws HSV color wedges and tests color conversion functions.
color4.py Draws sixteen sample color boxs with RGB labels.
color5.py Draws a Mandelbrot set.
conmasklc.py Draws contours over a masked lambert conformal map.
contour1.py Illustrates converting to a log axis.
contour2.py Illustrates how to fill a contour plot with colors and patterns.
contour3.py Illustrates drawing dashed negative contours and pointing tickmarks out.
contour_xyz.py Illustrates contouring randomly-spaced data.
ctnccl.py Draws contours on a triangular mesh.
ctrydiv1.py Draws provinces of China and states of India
datatondc1.py Illustrates converting data coordinates to NDC coordinates.
fillxy1.py Illustrates how to fill between curves in an XY plot.
fillxy2.py Illustrates how to fill between curves in an XY plot.
format.py Illustrates how to format the tickmark labels.
gaus.py Illustrates usage of the gaus function.
geodesic.py Draws colored contours on a map using a geodesic grid.
hdf1.py Plots EOS-DIS data
irregular.py Shows how to make irregular axes plot on a linear or log scale and
labelbar.py Demonstrates labelbars and labelbar resource settings.
legend.py Demonstrates legends and legend resource settings.
map1.py Illustrates how to change a map's aspect ratio.
map2.py Illustrates how to draw polygons, lines, and markers on a map.
map3.py Illustrates how to add your map tickmark labels and grid lines
meteogram.py Draws a meteogram.
mpas1.py Draws contours on an MPAS grid with 163,842 cells.
mpas2.py Compares raster and cell filled contours on an MPAS grid with 2,621,442 cells.
mpas3.py Draws outlines of an MPAS grid with 349,339 edges
multi_plot.py Illustrates drawing different plots on one page.
multi_y.py Shows how to conflate two XY plots and how to add and remove annotations.
natgrid1.py Simple example showing natgrid, nnsetp, and nngetp usage.
ndc_grid.py Illustrates how to draw primitives and text using NDC coordinates.
newcolor1.py Illustrates new color capabilities in PyNGL 1.5.0
newcolor2.py Illustrates new color capabilities in PyNGL 1.5.0
newcolor3.py Illustrates new color capabilities in PyNGL 1.5.0
newcolor4.py Illustrates new color capabilities in PyNGL 1.5.0
ngl01p.py Introductory tutorial example using resources for XY plots.
ngl02p.py Draws a sequence of contour visualizations from simple to more complex.
ngl03p.py Vector visualizations from simple to complex.
ngl04p.py Streamline visualizations.
ngl05p.py Draws contours over maps.
ngl06p.py Draws vectors over maps.
ngl07p.py Uses spline interpolation and draws two XY plots on the same frame.
ngl08p.py Does a 2D interpolation for a colored contour and an XY plot.
ngl09p.py Illustrates Animation of contours over a map and using masked arrays.
ngl10p.py Produces a publication XY plot.
ngl11p.py Produces a contour plot with separate scales and an XY plot.
nio01.py Shows how to use Nio to create a NetCDF file and then to read it.
nio02.py Demonstrates PyNIO docstrings
nio03.py Demonstrates PyNIO reading GRIB2/ writing NetCDF
nio04.py Shows how to use Nio to open an existing NetCDF file and append
overlay1.py Shows how to overlay multiple plots on one plot and then remove them.
panel1.py Illustrates how to draw several visualizations on a single frame.
panel2.py Illustrates how to draw three visualizations on a single frame.
scatter1.py Draws a scatter visualization using polymarkers.
scatter2.py Draws random markers using user-defined markers.
seam.py Illustrates contouring on the non-rectangular SEAM grid.
shapefile1.py Illustrates reading data from a shapefile and coloring U.S. states
shapefile2.py Simple example of how to draw selected geometry from a shapefile.
shapefile3.py Example of how to mask contour data over a map using a lat,lon area.
shapefile4.py Drawing France administrative areas using data on a shapefile.
skewt1.py Draws three skew-T background plots.
skewt2.py Draws skew-T visualizations using dummy data.
skewt3.py Draws two skew-T plots using real data.
spaghetti.py Illustrates generating one contour per time step to
streamline1.py Draws streamlines on a map over water only.
streamline2.py Draws streamlines colored by a scalar field.over contours and a map.
streamline3.py Shows how add text outside of a streamline plot.
thickness.py Draws polylines using various line thicknesses.
tickmark1.py Illustrates how to label minor tickmarks differently, by
tickmark2.py Illustrates how to change the tickmark labels on a map plot.
topo1.py Draws a topographic map of southern Colorado.
traj1.py Draws lines and polymarkers over a map to trace the paths of bouys.
vector_pop.py Shows how to plot vectors on a POP grid with land masked.
viewport1.py Illustrates the difference between the viewport and bounding box.
vinth2p.py Illustrates a call to the vinth2p function.
wmbarb.py Draws four different wind barbs at different positions.
wmbarbmap.py Draws several wind barbs over a map.
wmstnm01.py Illustrates plotting station model data.
wmstnm02.py Illustrates plotting station model data and wind barbs.
wmstnm03.py Illustrates plotting station model data over a map.
xy1.py Illustrates how to change the X and Y axes from linear to log.
xy2.py Illustrates how to add primitives and text to an XY plot.