The ContourPlot class draws line or filled contours with labels and annotations.
Header file: ncarg/hlu/ContourPlot.h Class name: contourPlotClass Class pointer: NhlcontourPlotClass Fortran class function: NHLFCONTOURPLOTCLASS Superclass: DataComm Composite classes: LogLinTransObj,IrregularTransObj,PlotManager Data specific class Class name: contourPlotDataDepClass Class pointer: NhlcontourPlotDataDepClass Fortran class function: NHLFCONTOURPLOTDATADEPCLASS Superclass: DataSpec
Type name: NhlTcnLevelSelectionMode Definition: typedef enum _NhlcnLevelSelectionMode { NhlAUTOMATICLEVELS = 0, /* "AutomaticLevels" */ NhlMANUALLEVELS = 1, /* "ManualLevels" */ NhlEXPLICITLEVELS = 2, /* "ExplicitLevels" */ NhlEQUALSPACEDLEVELS = 3 /* "EqualSpacedLevels" */ } NhlcnLevelSelectionMode; Type name: NhlTcnLevelUseMode Definition: typedef enum _NhlcnLevelUseMode { NhlNOLINE = 0, /* "NoLine" */ NhlLINEONLY = 1, /* "LineOnly" */ NhlLABELONLY = 2, /* "LabelOnly" */ NhlLINEANDLABEL = 3 /* "LineAndLabel" */ } NhlcnLevelUseMode; Type name: NhlTcnLevelUseModeGenArray Definition: An array of NhlTcnLevelUseMode elements. Type name: NhlTcnLineLabelPlacementMode Definition: typedef enum _NhlcnLineLabelSpacingMode { NhlCONSTANT = 0, /* "Constant" */ NhlRANDOMIZED = 1, /* "Randomized" */ NhlCOMPUTED = 2 /* "Computed" */ } NhlcnLineLabelSpacingMode; Type name: NhlTcnLabelScalingMode Definition: typedef enum _NhlcnLabelScalingMode { NhlSCALEFACTOR = 0, /* "ScaleFactor" */ NhlCONFINETORANGE = 1, /* "ConfineToRange" */ NhlTRIMZEROS = 2, /* "TrimZeros" */ NhlMAXSIGDIGITSLEFT = 3, /* "MaxSigDigitsLeft" */ NhlINTEGERLINELABELS = 4 /* "IntegerLineLabels" */ } NhlcnLabelScalingMode; Type name: NhlTcnHighLowLabelOverlapMode Definition: typedef enum _NhlcnHighLowLabelOverlapMode { NhlIGNOREOVERLAP = 0,1 /* "IgnoreOverlap" */ NhlOMITOVERHL = 2,3 /* "OmitOverHL" */ NhlOMITOVERVP = 4,5 /* "OmitOverVP" */ NhlOMITOVERVPANDHL = 6,7 /* "OmitOverVPAndHL" */ NhlADJUSTVP = 8,9 /* "AdjustVP" */ NhlADJUSTVPOMITOVERHL = 10,11 /* "AdjustVPOmitOverHL" */ } NhlcnHighLowLabelOverlapMode;
+---------------------------------------------------------------+ | ContourPlot Resource Set | |---------------------------------------------------------------| | NAME TYPE ACCESS | | CLASS DEFAULT | |===============================================================| | cnScalarFieldData NhlTInteger RCSG | | CnScalarFieldData <None> | |---------------------------------------------------------------| | cnLevelSelectionMode NhlTcnLevelSelectionMode RCSG | | CnLevelSelectionMode "AutomaticLevels" | |---------------------------------------------------------------| | cnLevelCount NhlTInteger G | | CnLevelCount <dynamic> | |---------------------------------------------------------------| | cnMaxLevelCount NhlTInteger RCSG | | CnMaxLevelCount 16 | |---------------------------------------------------------------| | cnLevelSpacingF NhlTFloat RCSG | | CnLevelSpacingF 5.0 | |---------------------------------------------------------------| | cnMinLevelValF NhlTFloat RCSG | | CnMinLevelValF <dynamic> | |---------------------------------------------------------------| | cnMaxLevelValF NhlTFloat RCSG | | CnMaxLevelValF <dynamic> | |---------------------------------------------------------------| | cnLevels NhlTFloatGenArray RCSG | | CnLevels <dynamic> | |---------------------------------------------------------------| | cnMonoLevelFlag NhlTBoolean RCSG | | CnMonoLevelFlag False | |---------------------------------------------------------------| | cnLevelFlag NhlTcnLevelUseMode RCSG | | CnLevelFlags "LineOnly" | |---------------------------------------------------------------| | cnLevelFlags NhlTcnLevelUseModeGenArray RCSG | | CnLevelFlags <dynamic> | |---------------------------------------------------------------| | cnLineLabelInterval NhlTFloat RCSG | | CnLineLabelInterval 2 | |---------------------------------------------------------------| | cnLinesOn NhlTBoolean RCSG | | CnLinesOn True | |---------------------------------------------------------------| | cnLineDrawOrder NhlTDrawOrder RCSG | | CnLineDrawOrder "Draw" | |---------------------------------------------------------------| | cnMonoLineColor NhlTBoolean RCSG | | CnMonoLineColor True | |---------------------------------------------------------------| | cnLineColor NhlTColorIndex RCSG | | CnLineColor "Foreground" | |---------------------------------------------------------------| | cnLineColors NhlTColorIndexGenArray RCSG | | CnLineColors <dynamic> | |---------------------------------------------------------------| | cnMonoLineDashPattern NhlTBoolean RCSG | | CnMonoLineDashPattern True | |---------------------------------------------------------------| | cnLineDashPattern NhlTDashIndex RCSG | | CnLineDashPattern "SolidLine" | |---------------------------------------------------------------| | cnLineDashPatterns NhlTDashIndexGenArray RCSG | | CnLineDashPatterns <dynamic> | |---------------------------------------------------------------| | cnMonoLineThickness NhlTBoolean RCSG | | CnMonoLineThickness True | |---------------------------------------------------------------| | cnLineThicknessF NhlTFloat RCSG | | CnLineThicknessF 1.0 | |---------------------------------------------------------------| | cnLineThicknesses NhlTFloatGenArray RCSG | | CnLineThicknesses 1.0 for all elements | |---------------------------------------------------------------| | cnLineDashSegLenF NhlTFloat RCSG | | CnLineDashSegLenF 0.15 | |---------------------------------------------------------------| | cnRasterModeOn NhlTBoolean RCSG | | CnRasterModeOn False | |---------------------------------------------------------------| | cnRasterCellSizeF NhlTFloat RCSG | | CnRasterCellSizeF False | |---------------------------------------------------------------| | cnFillOn NhlTBoolean RCSG | | CnFillOn False | |---------------------------------------------------------------| | cnFillDrawOrder NhlTDrawOrder RCSG | | CnFillDrawOrder "Draw" | |---------------------------------------------------------------| | cnFillBackgroundColor NhlTColorIndex RCSG | | CnFillColor "Transparent" | |---------------------------------------------------------------| | cnMonoFillColor NhlTBoolean RCSG | | CnMonoFillColor False | |---------------------------------------------------------------| | cnFillColor NhlTColorIndex RCSG | | CnFillColor "Foreground" | |---------------------------------------------------------------| | cnFillColors NhlTColorIndexGenArray RCSG | | CnFillColors <dynamic> | |---------------------------------------------------------------| | cnMonoFillPattern NhlTBoolean RCSG | | CnMonoFillPattern True | |---------------------------------------------------------------| | cnFillPattern NhlTFillIndex RCSG | | CnFillPattern "SolidFill" | |---------------------------------------------------------------| | cnFillPatterns NhlTFillIndexGenArray RCSG | | CnFillPatterns <dynamic> | |---------------------------------------------------------------| | cnMonoFillScale NhlTBoolean RCSG | | CnMonoFillScale True | |---------------------------------------------------------------| | cnFillScaleF NhlTFloat RCSG | | CnFillScales 1.0 | |---------------------------------------------------------------| | cnFillScales NhlTFloatGenArray RCSG | | CnFillScales 1.0 for all elements | |---------------------------------------------------------------| | cnLabelDrawOrder NhlTDrawOrder RCSG | | CnLabelDrawOrder "Draw" | |---------------------------------------------------------------| | cnLabelMasking NhlTBoolean RCSG | | CnLabelMasking False | |---------------------------------------------------------------| | cnLowUseHighLabelRes NhlTBoolean RCSG | | CnLowUseHighLabelRes False | |---------------------------------------------------------------| | cnHighUseLineLabelRes NhlTBoolean RCSG | | CnHighUseLineLabelRes False | |---------------------------------------------------------------| | cnConstFUseInfoLabelRes NhlTBoolean RCSG | | CnConstFUseInfoLabelRes False | |---------------------------------------------------------------| | cnHighLowLabelOverlapMode NhlTcnHighLowLabelOverlapMode RCSG | | CnHighLowLabelOverlapMode "IgnoreOverlap" | |---------------------------------------------------------------| | cnLabelScalingMode NhlTcnLabelScalingMode RCSG | | CnLabelScalingMode "ScaleFactor" | |---------------------------------------------------------------| | cnLabelScaleValueF NhlTFloat RCSG | | CnLabelScaleValueF 1.0 | |---------------------------------------------------------------| | cnLabelScaleFactorF NhlTFloat G | | CnLabelScaleFactorF <dynamic> | |---------------------------------------------------------------| | cnMaxDataValueFormat NhlTString RCSG | | CnMaxDataValueFormat NULL | |---------------------------------------------------------------| | cnLineLabelsOn NhlTBoolean RCSG | | CnLineLabelsOn True | |---------------------------------------------------------------| | cnExplicitLineLabelsOn NhlTBoolean RCSG | | CnExplicitLineLabelsOn False | |---------------------------------------------------------------| | cnLineLabelPlacementMode NhlTcnLineLabelPlacementMode RCSG | | cnLineLabelPlacementMode "Computed" | |---------------------------------------------------------------| | cnLineLabelStrings NhlTStringGenArray RCSG | | CnLineLabelStrings <dynamic> | |---------------------------------------------------------------| | cnMonoLineLabelFontColor NhlTBoolean RCSG | | cnMonoLineLabelFontColor True | |---------------------------------------------------------------| | cnLineLabelFontColor NhlTColorIndex RCSG | | cnLineLabelFontColor "Foreground" | |---------------------------------------------------------------| | cnLineLabelFontColors NhlTColorIndexGenArray RCSG | | cnLineLabelFontColors <dynamic> | |---------------------------------------------------------------| | cnLineLabelFormat NhlTString RCSG | | CnLineLabelFormat "*+g" | |---------------------------------------------------------------| | cnLineLabelFontHeightF NhlTFloat RCSG | | cnLineLabelFontHeightF <dynamic> | |---------------------------------------------------------------| | cnLineLabelFont NhlTFont RCSG | | CnLineLabelFont "pwritx" | |---------------------------------------------------------------| | cnLineLabelFontAspectF NhlTFloat RCSG | | CnLineLabelFontAspectF 1.3125 | |---------------------------------------------------------------| | cnLineLabelFontThicknessF NhlTFloat RCSG | | CnLineLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnLineLabelFontQuality NhlTFontQuality RCSG | | CnLineLabelFontQuality "High" | |---------------------------------------------------------------| | cnLineLabelConstantSpacingF NhlTFloat RCSG | | CnLineLabelConstantSpacingF 0.0 | |---------------------------------------------------------------| | cnLineLabelAngleF NhlTFloat RCSG | | CnLineLabelAngleF -1.0 | |---------------------------------------------------------------| | cnLineLabelFuncCode NhlTCharacter RCSG | | CnLineLabelFuncCode ':' | |---------------------------------------------------------------| | cnLineLabelBackgroundColor NhlTColorIndex RCSG | | CnLineLabelBackgroundColor "Background" | |---------------------------------------------------------------| | cnLineLabelPerimOn NhlTInteger RCSG | | cnLineLabelPerimOn True | |---------------------------------------------------------------| | cnLineLabelPerimSpaceF NhlTFloat RCSG | | CnLineLabelPerimSpaceF 0.33 | |---------------------------------------------------------------| | cnLineLabelPerimColor NhlTColorIndex RCSG | | CnLineLabelPerimColor "Foreground" | |---------------------------------------------------------------| | cnLineLabelPerimThicknessF NhlTFloat RCSG | | CnLineLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnHighLabelsOn NhlTBoolean RCSG | | CnHighLabelsOn True | |---------------------------------------------------------------| | cnHighLabelString NhlTString RCSG | | CnHighLabelString NULL | |---------------------------------------------------------------| | cnHighLabelFormat NhlTString RCSG | | CnHighLabelFormat "*+g" | |---------------------------------------------------------------| | cnHighLabelFontHeightF NhlTFloat RCSG | | cnHighLabelFontHeightF <dynamic> | |---------------------------------------------------------------| | cnHighLabelFont NhlTFont RCSG | | CnHighLabelFont "pwritx" | |---------------------------------------------------------------| | cnHighLabelFontColor NhlTColorIndex RCSG | | CnHighLabelFontColor "Foreground" | |---------------------------------------------------------------| | cnHighLabelFontAspectF NhlTFloat RCSG | | CnHighLabelFontAspectF 1.3125 | |---------------------------------------------------------------| | cnHighLabelFontThicknessF NhlTFloat RCSG | | CnHighLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnHighLabelFontQuality NhlTFontQuality RCSG | | CnHighLabelFontQuality "High" | |---------------------------------------------------------------| | cnHighLabelConstantSpacingF NhlTFloat RCSG | | CnHighLabelConstantSpacingF 0.0 | |---------------------------------------------------------------| | cnHighLabelAngleF NhlTFloat RCSG | | CnHighLabelAngleF 0.0 | |---------------------------------------------------------------| | cnHighLabelFuncCode NhlTCharacter RCSG | | CnHighLabelFuncCode ':' | |---------------------------------------------------------------| | cnHighLabelBackgroundColor NhlTColorIndex RCSG | | CnHighLabelBackgroundColor "Background" | |---------------------------------------------------------------| | cnHighLabelPerimOn NhlTInteger RCSG | | cnHighLabelPerimOn True | |---------------------------------------------------------------| | cnHighLabelPerimSpaceF NhlTFloat RCSG | | CnHighLabelPerimSpaceF 0.33 | |---------------------------------------------------------------| | cnHighLabelPerimColor NhlTColorIndex RCSG | | CnHighLabelPerimColor "Foreground" | |---------------------------------------------------------------| | cnHighLabelPerimThicknessF NhlTFloat RCSG | | CnHighLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnLowLabelsOn NhlTBoolean RCSG | | CnLowLabelsOn True | |---------------------------------------------------------------| | cnLowLabelString NhlTString RCSG | | CnLowLabelString NULL | |---------------------------------------------------------------| | cnLowLabelFormat NhlTString RCSG | | CnLowLabelFormat "*+g" | |---------------------------------------------------------------| | cnLowLabelFontHeightF NhlTFloat RCSG | | cnLowLabelFontHeightF <dynamic> | |---------------------------------------------------------------| | cnLowLabelFont NhlTFont RCSG | | CnLowLabelFont "pwritx" | |---------------------------------------------------------------| | cnLowLabelFontColor NhlTColorIndex RCSG | | CnLowLabelFontColor "Foreground" | |---------------------------------------------------------------| | cnLowLabelFontAspectF NhlTFloat RCSG | | CnLowLabelFontAspectF 1.3125 | |---------------------------------------------------------------| | cnLowLabelFontThicknessF NhlTFloat RCSG | | CnLowLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnLowLabelFontQuality NhlTFontQuality RCSG | | CnLowLabelFontQuality "High" | |---------------------------------------------------------------| | cnLowLabelConstantSpacingF NhlTFloat RCSG | | CnLowLabelConstantSpacingF 0.0 | |---------------------------------------------------------------| | cnLowLabelAngleF NhlTFloat RCSG | | CnLowLabelAngleF 0.0 | |---------------------------------------------------------------| | cnLowLabelFuncCode NhlTCharacter RCSG | | CnLowLabelFuncCode ':' | |---------------------------------------------------------------| | cnLowLabelBackgroundColor NhlTColorIndex RCSG | | CnLowLabelBackgroundColor "Background" | |---------------------------------------------------------------| | cnLowLabelPerimOn NhlTInteger RCSG | | cnLowLabelPerimOn True | |---------------------------------------------------------------| | cnLowLabelPerimSpaceF NhlTFloat RCSG | | CnLowLabelPerimSpaceF 0.33 | |---------------------------------------------------------------| | cnLowLabelPerimColor NhlTColorIndex RCSG | | CnLowLabelPerimColor "Foreground" | |---------------------------------------------------------------| | cnLowLabelPerimThicknessF NhlTFloat RCSG | | CnLowLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnInfoLabelOn NhlTBoolean RCSG | | CnInfoLabelOn True | |---------------------------------------------------------------| | cnInfoLabelString NhlTString RCSG | | CnInfoLabelString NULL | |---------------------------------------------------------------| | cnInfoLabelFormat NhlTString RCSG | | CnInfoLabelFormat "*+g" | |---------------------------------------------------------------| | cnInfoLabelFontHeightF NhlTFloat RCSG | | cnInfoLabelFontHeightF <dynamic> | |---------------------------------------------------------------| | cnInfoLabelTextDirection NhlTTextDirection RCSG | | CnInfoLabelTextDirection "Across" | |---------------------------------------------------------------| | cnInfoLabelFont NhlTFont RCSG | | CnInfoLabelFont "pwritx" | |---------------------------------------------------------------| | cnInfoLabelFontColor NhlTColorIndex RCSG | | CnInfoLabelFontColor "Foreground" | |---------------------------------------------------------------| | cnInfoLabelFontAspectF NhlTFloat RCSG | | CnInfoLabelFontAspectF 1.3125 | |---------------------------------------------------------------| | cnInfoLabelFontThicknessF NhlTFloat RCSG | | CnInfoLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnInfoLabelFontQuality NhlTFontQuality RCSG | | CnInfoLabelFontQuality "High" | |---------------------------------------------------------------| | cnInfoLabelConstantSpacingF NhlTFloat RCSG | | CnInfoLabelConstantSpacingF 0.0 | |---------------------------------------------------------------| | cnInfoLabelAngleF NhlTFloat RCSG | | CnInfoLabelAngleF 0.0 | |---------------------------------------------------------------| | cnInfoLabelFuncCode NhlTCharacter RCSG | | CnInfoLabelFuncCode ':' | |---------------------------------------------------------------| | cnInfoLabelBackgroundColor NhlTColorIndex RCSG | | CnInfoLabelBackgroundColor "Background" | |---------------------------------------------------------------| | cnInfoLabelPerimOn NhlTInteger RCSG | | cnInfoLabelPerimOn True | |---------------------------------------------------------------| | cnInfoLabelPerimSpaceF NhlTFloat RCSG | | CnInfoLabelPerimSpaceF 0.33 | |---------------------------------------------------------------| | cnInfoLabelPerimColor NhlTColorIndex RCSG | | CnInfoLabelPerimColor "Foreground" | |---------------------------------------------------------------| | cnInfoLabelPerimThicknessF NhlTFloat RCSG | | CnInfoLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnInfoLabelZone NhlTInteger RCSG | | CnInfoLabelZone 5 | |---------------------------------------------------------------| | cnInfoLabelSide NhlTPosition RCSG | | CnInfoLabelSide "Bottom" | |---------------------------------------------------------------| | cnInfoLabelJust NhlTJustification RCSG | | CnInfoLabelJust "TopRight" | |---------------------------------------------------------------| | cnInfoLabelParallelPosF NhlTFloat RCSG | | CnInfoLabelParallelPosF 1.0 | |---------------------------------------------------------------| | cnInfoLabelOrthogonalPosF NhlTFloat RCSG | | CnInfoLabelOrthogonalPosF 0.02 | |---------------------------------------------------------------| | cnNoDataLabelOn NhlTBoolean RCSG | | CnNoDataLabelOn True | |---------------------------------------------------------------| | cnNoDataLabelString NhlTString RCSG | | CnNoDataLabelString NULL | |---------------------------------------------------------------| | cnConstFLabelOn NhlTBoolean RCSG | | CnConstFLabelOn True | |---------------------------------------------------------------| | cnConstFLabelString NhlTString RCSG | | CnConstFLabelString NULL | |---------------------------------------------------------------| | cnConstFLabelFormat NhlTString RCSG | | CnConstFLabelFormat "*+g" | |---------------------------------------------------------------| | cnConstFLabelFontHeightF NhlTFloat RCSG | | cnConstFLabelFontHeightF <dynamic> | |---------------------------------------------------------------| | cnConstFLabelTextDirection NhlTTextDirection RCSG | | CnConstFLabelTextDirection "Across" | |---------------------------------------------------------------| | cnConstFLabelFont NhlTFont RCSG | | CnConstFLabelFont "pwritx" | |---------------------------------------------------------------| | cnConstFLabelFontColor NhlTColorIndex RCSG | | CnConstFLabelFontColor "Foreground" | |---------------------------------------------------------------| | cnConstFLabelFontAspectF NhlTFloat RCSG | | CnConstFLabelFontAspectF 1.3125 | |---------------------------------------------------------------| | cnConstFLabelFontThicknessF NhlTFloat RCSG | | CnConstFLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnConstFLabelFontQuality NhlTFontQuality RCSG | | CnConstFLabelFontQuality "High" | |---------------------------------------------------------------| | cnConstFLabelConstantSpacingF NhlTFloat RCSG | | CnConstFLabelConstantSpacingF 0.0 | |---------------------------------------------------------------| | cnConstFLabelAngleF NhlTFloat RCSG | | CnConstFLabelAngleF 0.0 | |---------------------------------------------------------------| | cnConstFLabelFuncCode NhlTCharacter RCSG | | CnConstFLabelFuncCode ':' | |---------------------------------------------------------------| | cnConstFLabelBackgroundColor NhlTColorIndex RCSG | | CnConstFLabelBackgroundColor "Background" | |---------------------------------------------------------------| | cnConstFLabelPerimOn NhlTInteger RCSG | | cnConstFLabelPerimOn True | |---------------------------------------------------------------| | cnConstFLabelPerimSpaceF NhlTFloat RCSG | | CnConstFLabelPerimSpaceF 0.33 | |---------------------------------------------------------------| | cnConstFLabelPerimColor NhlTColorIndex RCSG | | CnConstFLabelPerimColor "Foreground" | |---------------------------------------------------------------| | cnConstFLabelPerimThicknessF NhlTFloat RCSG | | CnConstFLabelFontThicknessF 1.0 | |---------------------------------------------------------------| | cnConstFLabelZone NhlTInteger RCSG | | CnConstFLabelZone 0 | |---------------------------------------------------------------| | cnConstFLabelSide NhlTPosition RCSG | | CnConstFLabelSide "Bottom" | |---------------------------------------------------------------| | cnConstFLabelJust NhlTJustification RCSG | | CnConstFLabelJust "CenterCenter" | |---------------------------------------------------------------| | cnConstFLabelParallelPosF NhlTFloat RCSG | | CnConstFLabelParallelPosF 0.0 | |---------------------------------------------------------------| | cnConstFLabelOrthogonalPosF NhlTFloat RCSG | | CnConstFLabelOrthogonalPosF 0.0 | |---------------------------------------------------------------| | cnMissingValPerimOn NhlTInteger RCSG | | cnMissingValPerimOn False | |---------------------------------------------------------------| | cnMissingValPerimThicknessF NhlTFloat RCSG | | CnMissingValPerimThicknessF 1.0 | |---------------------------------------------------------------| | cnMissingValPerimDashPattern NhlTDashIndex RCSG | | CnMissingValPerimDashPattern "SolidLine" | |---------------------------------------------------------------| | cnMissingValPerimColor NhlTColorIndex RCSG | | CnMissingValPerimColor "Foreground" | |---------------------------------------------------------------| | cnMissingValFillColor NhlTColorIndex RCSG | | CnMissingValFillColor "Background" | |---------------------------------------------------------------| | cnMissingValFillPattern NhlTInteger RCSG | | CnMissingValFillPattern "HollowFill" | |---------------------------------------------------------------| | cnMissingValFillScaleF NhlTFloat RCSG | | CnMissingValFillScaleF 1.0 | |---------------------------------------------------------------| | cnGridBoundPerimOn NhlTInteger RCSG | | cnGridBoundPerimOn False | |---------------------------------------------------------------| | cnGridBoundPerimThicknessF NhlTFloat RCSG | | CnGridBoundPerimThicknessF 1.0 | |---------------------------------------------------------------| | cnGridBoundPerimDashPattern NhlTDashIndex RCSG | | CnGridBoundPerimDashPattern "SolidLine" | |---------------------------------------------------------------| | cnGridBoundPerimColor NhlTColorIndex RCSG | | CnGridBoundPerimColor "Foreground" | |---------------------------------------------------------------| | cnOutOfRangePerimOn NhlTInteger RCSG | | cnOutOfRangePerimOn False | |---------------------------------------------------------------| | cnOutOfRangePerimThicknessF NhlTFloat RCSG | | CnOutOfRangePerimThicknessF 1.0 | |---------------------------------------------------------------| | cnOutOfRangePerimDashPattern NhlTDashIndex RCSG | | CnOutOfRangePerimDashPattern "SolidLine" | |---------------------------------------------------------------| | cnOutOfRangePerimColor NhlTColorIndex RCSG | | CnOutOfRangePerimColor "Foreground" | |---------------------------------------------------------------| | cnSmoothingOn NhlTBoolean RCSG | | CnSmoothingOn False | |---------------------------------------------------------------| | cnSmoothingTensionF NhlTFloat RCSG | | CnSmoothingTensionF 2.5 | |---------------------------------------------------------------| | cnSmoothingDistanceF NhlTFloat RCSG | | CnSmoothingDistanceF 0.01 | |---------------------------------------------------------------| | cnMaxPointDistanceF NhlTFloat RCSG | | CnMaxPointDistanceF 0.05 | |---------------------------------------------------------------| | cnExplicitLabelBarLabelsOn NhlTBoolean RCSG | | CnExplicitLabelBarLabelsOn False | |---------------------------------------------------------------| | cnLabelBarEndLabelsOn NhlTBoolean RCSG | | CnLabelBarEndLabelsOn False | |---------------------------------------------------------------| | cnExplicitLegendLabelsOn NhlTBoolean RCSG | | CnExplicitLegendLabelsOn False | |---------------------------------------------------------------| | cnLegendLevelFlags NhlTcnLevelUseModeGenArray RCSG | | CnLegendLevelFlags NULL | +---------------------------------------------------------------+
You can access all LogLinTransObj resources. These resources define the extent and direction of the data coordinates, and whether each axis is to use a logarithmic or linear coordinate system. However, note that ContourPlot intercepts the LogLinTransObj resources, as follows:
The ContourPlot class currently blocks access to the following IrregularTransObj resources:
Never
.
Never
.
Conditional
.
Conditional
.
The ContourPlot object provides what may seem like an overwhelming number of resources, but keep in mind that generally you will need to use only a few of these resources. In fact, there is only one resource you need to set explicitly in order to generate a contour plot. You need focus only on resources that modify the features of the ContourPlot object that are important to you. All the others will default to a generally usable value. Moreover, resources that provide control over related attributes of the various ContourPlot elements have related names. As an example, all resources that specify the color of the text used for the various labels available in the ContourPlot object, have names of the form cn...LabelFontColor(s), where the plural form is used for resources that represent arrays.
In addition to the intrinsic transformation support, by overlaying the ContourPlot object on a base plot, you may map contours of arbitrary ScalarField data into a variety of coordinate spaces. You can overlay the ContourPlot object on a MapPlot object to map the data into any of 10 different map projections. You can overlay contours of irregularly gridded data on the LogLinPlot object to have the data appear in a linear or logarithmic coordinate space. You can also overlay any contoured data on an IrregularPlot object, either to project regularly gridded data into an irregular coordinate space, or perhaps to overcome the limitations imposed on the data extent of the ContourPlot object's intrinsic irregular transformation. Use the NhlAddOverlay function to accomplish the overlay operation.
Note that annotations associated with the ContourPlot, including the informational and constant field labels, are always drawn during the postdraw phase.
Conditional
or Always
.
Except for the tickmarks and the titles, all these annotations are positioned using resources that follow the PlotManager Location Control Model. The ContourPlot object provides resources for controlling attributes of the informational and the constant field labels. You can control the resources of the objects that render the other annotations directly, subject to some access and behavioral modifications imposed by the PlotManager object and by the ContourPlot object itself. These objects are the TickMark object, the Title object, the LabelBar object, and the Legend object.
AutomaticLevels
, is easy to use. It selects a "nice"
spacing starting from the smallest relatively round number greater
than the minimum data value, such that the number of contour levels is
as close as possible to, but less than, the value of the resource cnMaxLevelCount.
EqualSpacedLevels
mode defines exactly cnMaxLevelCount
levels spaced evenly from the data minimum value to the data maximum
value. In ManualLevels
mode, you set the maximum and
minimum contour levels using the resources cnMinLevelValF and
cnMaxLevelValF
with a spacing defined by the resource cnLevelSpacingF. Finally,
Explicit
mode allows you to define the level values
yourself by setting the array resource cnLevels. The
ManualLevels
and ExplicitLevels
modes have
the advantage that they are independent of the maximum and minimum
values of the particular data set you are contouring, and therefore
can be used to enforce consistency in the contouring of a series of
related data sets. ExplicitLevels
is the only mode that
allows you to establish variably-spaced contour levels.
Once you have established the contour levels, you can retrieve the number of levels actually used by getting the value of the read-only resource cnLevelCount. Based on this value, you can set the cnLevelFlags enumerated array resource to specify whether you want lines only, labels only, lines and labels, or nothing at each individual contour level. This resource also has a scalar equivalent, cnLevelFlag, which you can set instead if you want all levels to appear the same way. If you set neither of these resources, line labels automatically appear at contour levels spaced apart by the value of the resource cnLineLabelInterval, set by default to the value 2.
For non-raster fill, you can control the color, the fill pattern, and the scale of the fill pattern for all filled contour regions either individually or uniformly as a group. Individual control is through the array resources, cnFillColors, cnFillPatterns, and cnFillScales while control as a group is through the scalar resources cnFillColor, cnFillPattern, and cnFillScaleF. You choose the scalar resources by setting the boolean resources cnMonoFillColor, cnMonoFillPattern, and cnMonoFillScale True; the array resources by setting them False.
Raster fill is based on an array of square cells superimposed on the area occupied by the data grid. Each cell is colored according to the value of the data at its centerpoint. You can control the size of the cell used to create this grid using the resource cnRasterCellSizeF and the colors used for each contour level using the resource cnFillColors. The remaining fill attribute resources are ignored when raster fill is enabled.
The ContourPlot supports five label types: line labels, high labels, low labels, an informational label, and a constant field label. The constant field label has the ability also to act as a label indicating that no data has been supplied. Each type has its own set of resources allowing individual control of particular label type. The resources controlling label attributes have a generally uniform behavior for all label types. The resource names follow a consistent naming for distinguishing the label types and their attributes. There are broadly three classes of label attributes that apply to all labels: those that control the content and format of the text string; those that control in appearance of the text, called font attributes; and those that control the appearance of the label background and perimeter. The informational and constant field labels support a fourth class of label attributes: those that control the location of the label. In addition to these label resources classes, there are several resources that apply globally to all label types, plus a few that only apply to a single label type.
In order to simplify the management of label resources, there are several resources that allow you tie most of the resources of different label types together. cnLowUseHighLabelRes, when set True causes all low label resources except cnLowLabelString to take on the value of the corresponding high label resource. cnHighUseLineLabelRes, when set True causes all high label resources except cnHighLabelString and cnHighLabelAngleF to take on the value of the corresponding line label resource. And finally cnConstFUseInfoLabelRes, when set True causes all constant field label resources except cnConstFLabelString to take on the value of the corresponding informational label resource.
Note that because of constraints placed by the lower level utilities, some attributes of high and low labels are tied together and cannot be set individually. Also, the line label resources differ because several of them are array resources, allowing individual control of the labels that appear with each contour line.
The following sections discuss each label attribute type as they apply to all label types. The '...' in the resource name is understood to stand for the identifying name of each label type, as follows:
You specify the format string for numerical substitutions according to the HLU Floating Point Format Specification scheme. This scheme allows certain aspects of a number's format to be determined dynamically. The ContourPlot object uses this facility to allow you to base the formatting of all labels, in particular the assumed rightmost significant digit, on the dataset element with the maximum absolute value. The resource cnMaxDataValueFormat specifies a format for the dataset element with the maximum absolute value. The value and the format used together determine the specification of each dynamically specified format option for all label types.
The ContourPlot object recognizes a number of special substitution strings that are replaced on output with certain key values related to the dataset and the contour levels. How or whether a particular substitution string is recognized depends on the label type as follows:
If the resource cnMonoLineLabelFontColor
is set True, ContourPlot uses the scalar resource cnLineLabelFontColor
for all line labels; otherwise it uses the array resource, cnLineLabelFontColors.
Also the resource cnLineLabelAngleF is
ignored if cnLineLabelPlacementMode
is set to Constant
.
Constant
.
The position of line labels can be adjusted using the resource cnLineLabelPlacementMode. Also you can control in a limited way the location of high and low labels with the resource cnHighLowLabelOverlapMode.
You control the line attributes of the boundaries with the following resources, where '...' in the resource name is understood to stand for the identifying name of each boundary type, MissingValue, Grid, or OutOfRange
Missing values areas have in addition the resources cnMissingValFillColor, cnMissingValFillPattern, and cnMissingValFillScaleF for controlling the fill attributes of the missing value areas. If the raster mode of contour filling is enabled only the resource cnMissingValFillColor has any effect.
6: Since the ContourPlot object creates the informational label using an Annotation object managed by the PlotManager object, Conpack has no way of knowing the position of the Informational label. Therefore, there is no way to support the option of omitting high and low labels that overlap the informational label. For the time being at least, the type NhlTcnHighLowLabelOverlapMode maps directly to the Conpack internal parameter, 'HLO'. Therefore numerically speaking this type effectively has two values for each functionally unique enumerated value.
8: You cannot yet access the parameters,
RC1, RC2, and RC3 that control the degree of randomnesss for the
Randomized
method of cnLineLabelPlacementMode.
9: You cannot control the parameters that
control the algorithm for the Computed
method of
cnLineLabelPlacementMode. Should the name of this option be
changed? Under certain conditions when part of the data space is
outside the viewport, the Computed methed seems to fail, and the plot
appears without any line labels at all.
This problem requires further investigation.
13: Large values of cnSmoothingTensionF above 10.0 or so cause the ContourPlot object often to improperly project lines out of the plotter frame. This needs to be examined more closely. Also note that when lines cross, contour fill often 'bleeds' out of its boundaries.
15: There are problems with contour fill dropping out when projected through some of the map projections.
NG4 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?