等值线源属性

cnCellFillEdgeColor
cnCellFillMissingValEdgeColor
cnConpackParams
cnConstFEnableFill

仅在 6.2.0 版及以后的版本中可用

当布尔型源属性 cnConstFEnableFill 设定为 True (真)时,在大多数情况下, 常量和接近常量的场将使用区域填充呈现,而不是让等值的区域保持空白。 默认情况下,常量场信息文本框仍然出现;你可以将 cnConstFLabelOn 设定为 False 来禁用它。

在未来, cnConstFEnableFill 的默认值可能会被设定为 False , cnConstFLabelOn 的默认值设定为 False ,除非等值线线图被启用。

默认值: False

cnConstFLabelAngleF

此源属性指定了常量场标签文本和环绕它的文本框的角度(单位为°)。

默认值: 0.0

cnConstFLabelBackgroundColor

此源属性设定用于填充环绕常量场标签文本框的背景颜色。如果你不想让文本框被填充, 设定它 cnConstFLabelBackgroundColor 为透明( -1 )。

你可以选择使用颜色索引值(整数)或命名颜色(字符串)来赋值本源属性。

默认值:背景色( 0

cnConstFLabelConstantSpacingF
cnConstFLabelFont

这一 `NhlTFont`_ 类源属性指定了绘制标量场标签文本所使用的字体。

默认值: "pwritx"

cnConstFLabelFontAspectF

此源属性指定了常量场标签字符的形状。从 1.0 往上增加时,字符更瘦;从 1.0 往下减时,字符更宽。设定小于等于 0.0 的值,将导致警告信息并使用默认值。

默认值: 1.3125

cnConstFLabelFontColor

此源属性指定了用于绘制常量场标签文本的颜色。

你可以选择使用颜色索引值(整数)或命名颜色(字符串)来赋值本源属性。

默认值: True

cnConstFLabelFontHeightF

此源属性控制常量场标签文本字符的高度(NDC | 页面坐标)。 字符的宽度将按比例变化,除非你使用 cnConstFLabelFontAspectF 改变纵横比。 常量场标签文本高度将随着视窗宽度的变化而变化, 除非你同时显式的设定 cnConstFLabelFontHeightF

默认值:<dynamic> – 视窗宽度为0.6时,其为 0.012

cnConstFLabelFontQuality

这一 `NhlTFontQuality`_ 类的源属性指定了用于绘制常量场标签的字体质量。

默认值: High

cnConstFLabelFontThicknessF

指定了绘制常量场标签文本字体的线的粗细。其值是依赖设备单位粗细的倍数。 当常量场标签字体 cnConstFLabelFont 被设定为填充字体( 21-22, 25-26, 29-30, 33-37 ) 时,该源属性被忽略。

默认值: 1.0

cnConstFLabelFormat
cnConstFLabelFuncCode
cnConstFLabelJust
cnConstFLabelOn
cnConstFLabelOrthogonalPosF
cnConstFLabelParallelPosF
cnConstFLabelPerimColor
cnConstFLabelPerimOn
cnConstFLabelPerimSpaceF
cnConstFLabelPerimThicknessF
cnConstFLabelSide
cnConstFLabelString
cnConstFLabelTextDirection
cnConstFLabelZone
cnConstFUseInfoLabelRes
cnExplicitLabelBarLabelsOn
cnExplicitLegendLabelsOn
cnExplicitLineLabelsOn
cnFillBackgroundColor
cnFillColor
cnFillColors
cnFillDotSizeF
cnFillDrawOrder
cnFillMode
cnFillOn
cnFillOpacityF
cnFillPalette
cnFillPattern
cnFillPatterns
cnFillScaleF
cnFillScales
cnFixFillBleed
cnGridBoundFillColor
cnGridBoundFillPattern
cnGridBoundFillScaleF
cnGridBoundPerimColor
cnGridBoundPerimDashPattern
cnGridBoundPerimOn
cnGridBoundPerimThicknessF
cnHighLabelAngleF
cnHighLabelBackgroundColor
cnHighLabelConstantSpacingF
cnHighLabelCount
cnHighLabelFont
cnHighLabelFontAspectF
cnHighLabelFontColor
cnHighLabelFontHeightF
cnHighLabelFontQuality
cnHighLabelFontThicknessF
cnHighLabelFormat
cnHighLabelFuncCode
cnHighLabelPerimColor
cnHighLabelPerimOn
cnHighLabelPerimSpaceF
cnHighLabelPerimThicknessF
cnHighLabelString
cnHighLabelsOn
cnHighLowLabelOverlapMode
cnHighUseLineLabelRes
cnInfoLabelAngleF
cnInfoLabelBackgroundColor
cnInfoLabelConstantSpacingF
cnInfoLabelFont
cnInfoLabelFontAspectF
cnInfoLabelFontColor
cnInfoLabelFontHeightF
cnInfoLabelFontQuality
cnInfoLabelFontThicknessF
cnInfoLabelFormat
cnInfoLabelFuncCode
cnInfoLabelJust
cnInfoLabelOn
cnInfoLabelOrthogonalPosF
cnInfoLabelParallelPosF
cnInfoLabelPerimColor
cnInfoLabelPerimOn
cnInfoLabelPerimSpaceF
cnInfoLabelPerimThicknessF
cnInfoLabelSide
cnInfoLabelString
cnInfoLabelTextDirection
cnInfoLabelZone
cnLabelBarEndLabelsOn
cnLabelBarEndStyle
cnLabelDrawOrder
cnLabelMasking
cnLabelScaleFactorF
cnLabelScaleValueF
cnLabelScalingMode
cnLegendLevelFlags
cnLevelCount
cnLevelFlag
cnLevelFlags
cnLevelSelectionMode 等值线阶选择模式

设置等值线图层中等值线间隔的显示方法。

  • AutomaticLevels 自动等值线阶

    Ordinarily this mode determines contour levels by picking a spacing value from a set of relatively “round” numbers scaled by powers of 10 to the range of the data. This set of numbers is as follows: 1.0, 2.0, 2.5, 4.0, 5.0. The number of levels chosen will be as close as possible to the value of cnMaxLevelCount without exceeding it. Once the spacing is chosen, the minimum contour level is set to the value of the least multiple of the spacing greater than the minimum data value. Likewise the maximum contour level becomes the greatest multiple of the spacing less than the maximum data value. Based on these values, ContourPlot sets the resources cnLevelSpacingF, cnMinLevelValF, and cnMaxLevelValF appropriately. On the other hand, if you explicitly set the resource cnLevelSpacingF to a valid value greater than 0.0 and less than the range of the data, it will be used as the interval spacing. The minimum and maximum levels are calculated as before. If as a consequence, cnMaxLevelCount is less than the number of levels so specified, it will be set to the number of levels actually needed. However, if the choice of spacing causes the absolute maximum number of levels, currently 255, to be exceeded, ContourPlot will issue a warning message and recalculate the spacing as previously described.

    In any case, ContourPlot sets the elements of the array resource cnLevels to the values of the contour levels chosen and the read-only resource cnLevelCount to the number of levels.

  • ManualLevels 手动等值线阶

    ManualLevels mode bases the choice of contour levels on the values of the resources cnLevelSpacingF, cnMinLevelValF, and cnMaxLevelValF. Starting at cnMinLevelValF, contour levels are created at intervals spaced by the value of cnLevelSpacingF until cnMaxLevelValF is reached. The final contour level will always be cnMaxLevelValF. ContourPlot sets elements of the array resource cnLevels to the values of each contour level chosen and the read-only resource cnLevelCount to the number of levels. If the current value of cnMaxLevelCount is less than cnLevelCount, it is reset to the value of cnLevelCount. However, if the level count would exceed the absolute maximum number of levels, currently 255, ContourPlot issues a warning and chooses a new value of cnLevelSpacingF based on the value of cnMaxLevelCount. If you choose ManualLevels selection mode when the ContourPlot object is created, and if you do not set cnMinLevelValF, ContourPlot will choose levels as if you had set AutomaticLevels mode. If you set cnMinLevelValF only, a default spacing is used, and the value of cnMaxLevelValF is determined as it would be for AutomaticLevels mode.

  • ExplicitLevels 显式自定义等值线阶

    这一模式允许你使用源 cnLevels 数组来显式地指定每一条等值线的值。如果 你选择此模式而不设定源 cnLevels ,等值线图将假定你指定使用自动等值线 阶模式,即 AutomaticLevels 来设定等值线阶。因此,当你设定 ExplicitLevels 模式时,不论你是否显式地设定了源 cnLevels ,等值线图都将使用当前的 cnLevels 的内容。如果源 cnLevels 的元素个数超过了等值线阶的最大 数量(当前为255条),等值线图将提出警告并设定模式回默认的自动等值线阶 ( AutomaticLevels )。

    注意等值线图将总是对源 cnLevels 数组的元素排序为单调递增的序列。排序 后的数组,使用第一个元素设定 cnMinLevelValF , 最后一个元素设定 cnMaxLevelValF ,元素间的间隔平均值设定 cnLevelSpacingF

默认值: AutomaticLevels

cnLevelSpacingF

cnLevelSelectionMode 设定为手动( ManualLevels )或者设为自动且设定了 cnLevelSpacingF 时, cnLevelSpacingF 决定了等值线的间隔。否则,等值线图 形对象将基于事实上选择的等值线阶来设定 cnLevelSpacingF 的值。当等值线阶选 择模式( cnLevelSelectionMode )设为显示自定义( ExplicitLevels )时, cnLevelSpacingF 将被设定到等值线间隔的算术平均值。

默认值:5.0

cnLevels

此源属性是一个包含等值线值的浮点型数组,被用于绘制等值线。如果等值线选择模式 ( cnLevelSelectionMode )为显示自定义 ( ExplicitLevels )时,你可以设 定此属性数组元素。否则,等值线图形对象将设定这个数组的元素。

默认值: <dynamic> 动态

cnLineColor

当等值线单线颜色属性 ( cnMonoLineColor )被设定为真( True )时, 这个源属性接受一个NhlTColorIndex类(即颜色表序号)或者命名颜色(字符串)来为所有的等值线 设定一个统一的颜色。

默认值:Foreground (1) 背景色

cnLineColors

The elements of this array of type NhlTColorIndexGenArray can be set using an array of color indexes, an array of named colors, or an array of RGB or RGBA values. If cnMonoFillColor If cnMonoLineColor is False, each member of the array specifies the color of the contour line drawn at the corresponding contour level. Although backwards compatibility is for the most part maintained, beginning with version 6.1.0, this resource supports the new 32-bit color model, as follows:

If cnLineColors is not set explicitly, its values are derived from the settings of cnLinePalette and cnSpanLinePalette, or, if cnLinePalette is not set, wkColorMap and cnSpanLinePalette. If cnSpanLinePalette is True, the values are distributed evenly through the range of colors available from cnLinePalette or wkColorMap. Otherwise, the values are sequential. If the color indexes are derived from cnLinePalette the first color comes from element 0, whereas if they are derived from wkColorMap, the first color comes from element 2. This is because wkColorMap contains special elements (0 and 1) for the Background and Foreground colors, whereas the palette-type resources do not. If some but not all of the available elements of cnLineColors are explicitly set, the remaining elements will be determined as if cnSpanLinePalette has the value False.

For backwards compatibility, colors set based on wkColorMap remain indexed to the current color map associated with the workstation. Consequently, if the workstation color map is changed prior to drawing the plot, the color indexes will map into the new color map. In contrast, color indexes derived from the cnLinePalette resource always refer to a specific color regardless of changes to wkColorMap.

Default: <dynamic>

cnLineDashPattern
cnLineDashPatterns
cnLineDashSegLenF
cnLineDrawOrder
cnLineLabelAngleF
cnLineLabelBackgroundColor
cnLineLabelConstantSpacingF
cnLineLabelCount
cnLineLabelDensityF
cnLineLabelFont
cnLineLabelFontAspectF
cnLineLabelFontColor
cnLineLabelFontColors
cnLineLabelFontHeightF
cnLineLabelFontQuality
cnLineLabelFontThicknessF
cnLineLabelFormat
cnLineLabelFuncCode
cnLineLabelInterval
cnLineLabelPerimColor
cnLineLabelPerimOn
cnLineLabelPerimSpaceF
cnLineLabelPerimThicknessF
cnLineLabelPlacementMode
cnLineLabelStrings
cnLineLabelsOn
cnLinePalette
cnLineThicknessF
cnLineThicknesses
cnLinesOn
cnLowLabelAngleF
cnLowLabelBackgroundColor
cnLowLabelConstantSpacingF
cnLowLabelCount
cnLowLabelFont
cnLowLabelFontAspectF
cnLowLabelFontColor
cnLowLabelFontHeightF
cnLowLabelFontQuality
cnLowLabelFontThicknessF
cnLowLabelFormat
cnLowLabelFuncCode
cnLowLabelPerimColor
cnLowLabelPerimOn
cnLowLabelPerimSpaceF
cnLowLabelPerimThicknessF
cnLowLabelString
cnLowLabelsOn
cnLowUseHighLabelRes
cnMaxDataValueFormat
cnMaxLevelCount
cnMaxLevelValF
cnMaxPointDistanceF
cnMinLevelValF
cnMissingValFillColor
cnMissingValFillPattern
cnMissingValFillScaleF
cnMissingValPerimColor
cnMissingValPerimDashPattern
cnMissingValPerimGridBoundOn
cnMissingValPerimOn
cnMissingValPerimThicknessF
cnMonoFillColor
cnMonoFillPattern
cnMonoFillScale
cnMonoLevelFlag
cnMonoLineColor

当设定此源属性为真( True )时,所有的等值线被设定为同样的颜色,这个颜色 由标量源属性 cnLineColor 的值确定。否则,可以使用数组源属性 cnLineColors 来独立地控制每一条线的颜色。

默认值: True

cnMonoLineDashPattern
cnMonoLineLabelFontColor
cnMonoLineThickness
cnNoDataLabelOn
cnNoDataLabelString
cnOutOfRangeFillColor
cnOutOfRangeFillPattern
cnOutOfRangeFillScaleF
cnOutOfRangePerimColor
cnOutOfRangePerimDashPattern
cnOutOfRangePerimOn
cnOutOfRangePerimThicknessF
cnRasterCellSizeF
cnRasterMinCellSizeF
cnRasterModeOn
cnRasterSampleFactorF
cnRasterSmoothingOn
cnScalarFieldData
cnSmoothingDistanceF
cnSmoothingOn
cnSmoothingTensionF
cnSpanFillPalette
cnSpanLinePalette