Last modified: Thursday, 14-Mar-2002 10:44:05 MST
gsn Generic Plot Templates: Line
| Example 1 from Mary Haley's Getting Started with NCL also demonstrates the use of gsn_xy.
Default plot from ACSII data.
gsn_xy is the generic GSUN plot template that creates xy plots.
Add some titles.
tiMainString = "An xy plot Example", Adds a plot title
tiYAxisString = "Dust (ppm)", Adds a y-axis title
tiXAxisString = "Time", Adds an x-axis title.
Demonstrates multiple lines, line color, thickness, and pattern.
xyLineColors = (/"black","red"/), control the line colors.
xyLineThicknesses = (/1.0,2.0/), Controls the line thicknesses.
xyDashPatterns = (/0,0/), Controls the line dash patterns. By default, if
there are multiple lines present, NCL will draw the first one as solid,
the second as dashed etc. This resource forces both lines to be solid.
Demonstrates adding markers to lines.
xyMarkLineModes = (/"Markers","Lines","MarkLines"/), Controls
whether each line on the plot is represented soly by a line, by markers,
xyMarkerColors = (/"red", "black","black"/),Controls the colors
of the markers. Note that we fill out the array.
xyMarkers= (/2,0,1/), controls the style of the
Demonstrates the use of the
gsn_y plot template.