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
NUG_curvilinear_contour_PyNGL.py Illustrates how to create cell-filled contours of curvilinear data
NUG_rectilinear_contour_PyNGL.py Illustrates creating contours over a map
NUG_rectilinear_slice_PyNGL.py Illustrates slicing the data and creating a contour plot
NUG_rectilinear_vector_PyNGL.py Illustrates creating vectors over contours over a map
NUG_unstructured_ICON_triangles_PyNGL.py Illustrates using polygon fill for triangular mesh data.
NUG_unstructured_contour_cellfill_PyNGL.py Illustrates how to create cell-filled contours of unstructured data
NUG_xy_plot_simple_PyNGL.py Illustrates how to customize curves and a legend in an XY plot
bar1.py Illustrates how to draw bar charts.
bar2.py Illustrates how to draw a bar chart with a legend.
camse1.py Creates color contours of a CAM-SE variable over an
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.
color6.py Draws named colormaps as a vertical or horizontal bar of colors.
color7.py Draws all colors in user specified color maps using draw_color_palette.
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
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.
grb1.py Plots GRIB2 data on a rotated grid.
hdf1.py Plots EOS-DIS data.
hdf2.py Unpacks and plots HDF-EOS data.
hdf3.py Unpacks and plots HDF5 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
mask1.py Illustrates masking certain areas in a contour/map plot by drawing the
mask2.py Illustrates masking certain areas in a contour/map plot by using annotations.
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
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.
newcolor6.py Illustrates applying opacity to filled contours to emphasize a
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 Interpolates 1D data to a 2D grid and creates a colored contour
ngl09p.py Illustrates animation of contours over a map and using masked
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 Draws France administrative areas using data read from 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
streamline3.py Shows how add text outside of a streamline plot.
taylor_diagram1.py Illustrates how to create a taylor diagram.
thickness.py Draws polylines using various line thicknesses.
tickmark1.py Illustrates how to label both minor and major tickmarks.
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.
wrf1.py Draws filled contours over a map of a WRF variable or diagnostic
wrf2.py Draws filled contours over a map of a WRF variable or diagnostic
wrf3.py Draws contours of a WRF diagnostic variable calculated using
wrf4.py Draws colored streamlines of U,V read off a WRF output file.
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.
xy3.py Illustrates how to draw stacked XY plots.