WXP
Resource Reference

Resource: color_fill

Resource color_fill
Overview Specifies the colors in the color fill contours.
Command Line -cof=[value:]color[:attribute...],[value:]color[:attribute...],...
-cof=filename
Environment Variable wxpclrfill
Possible Values
Default Value magenta, lmagenta, blue, lblue, cyan, lcyan, green, lgreen, brown, yellow, red, lred, dgray, lgray, white

This resource is used to specify a list of colors and attributes for color fill contours. Up to a total of 256 colors may be specified separated by commas. Also, a value of "end" automatically terminates the list. A value of "off" tells the contouring algorithm not to display that contour level. Each color/attribute may be preceded by a value which specifies the exact contour value to use for that color. The value represents the low end of the fill area. Color fill attributes also apply to line contours which allows line contours to have different style. The line contour colors can also color fill colors is the value of the resrc:color_cont resource is "off".

Contouring

The color_fill resource allows a great deal of tailoring of contour plots and satellite images. The syntax for each color fill parameter is:

[value:]color[:attribute...]

In the simplest form, the color fill list is just a list of colors to be used by the program to display color fill contours. The first color is associated with the lowest contour value unless changed with the resrc:con_base resource.

magenta,lmagenta,blue,lblue,cyan,lcyan,green,lgreen,brown,yellow,red,lred,dgray,lgray,white

Each color may also have attributes listed which modify the appearance of the color fill contours.

dgray:fi=vln,dgray

which uses a different fill pattern for the first color fill range. This can be used in conjuntion with line contours if the resrc:color_cont resource is set to "off". These attributes can be used to tailor the lines:

brown,brown:st=dot,brown:st=dot,brown:st=dot,brown:st=dot

which is used to make every 5th line solid and all others dotted.

Color ranges may also be specified to simplify the list. For example:

2-4 or red-blue

would be equivalent to red,green,blue. The attributes for the entire range come from the attributes listed for the first color in the range.

Finally, values can be attached to each color fill value. This locks in a particular color to a specific contour range and can specify contour values which are not regular and thus cannot be specified with the resrc:con_interval resource.

.01:DDMagenta,.05:DMagenta,.1:MMagenta,.175:BMagenta,.25:Blue, .375:LBlue,.5:Green,.75:LGreen,1:Brown,1.5:Yellow,2:Red, 3:Lred,4:LGray

This specifies the color fills for a precipitation field. When values are specified, a color bar automatically appears since this is necessary to denote irregular contour values.

Color Fill File

As color fill settings get more complicated, it becomes more convenient to put the values in a file. WXP has a color fill file that can be specified with the color_fill resource:

-cof=prec.cfl

The file has the same information except the values are put of different lines without the commas:

.01:DDMagenta
.05:DMagenta
.1:MMagenta
.175:BMagenta
.25:Blue
.375:LBlue
.5:Green
.75:LGreen
1:Brown
1.5:Yellow
2:Red
3:Lred
4:LGray

Up to 256 color fill values can be specified.

Contour Labels

The labels on the contour plot and color bar are based on the value listed. For example, the first value listed would be labeled ".01". To change this label, use the label parameter ".01:DDMagenta:la=min" or "85:red:la=HOT".

Line Contours

The color_fill resource is used to specify the attributes for each line contour. If this resource is specified, the lowest contour gets the first attribute listed and the next lowest, the second attribute listed and so on. This allows each line contour to be a different color.

If the color_cont resource is set to "miss", the colors from the color_fill resource carry over to the line contours as well allowing each line to be a different color.

Radar Plots

For radar plots, the color_fill resource acts much like a plot of a color fill contour. The default for a RCM plot is:

-150:off, 20:blue, 30:cyan, 40:green, 45:yellow, 50:red, 55:magenta

NIDS data has its own predefined color fill parameters depending on the type of plot. For example, base reflectivity is:

100:off, 5:blue, 10:lblue, 15:cyan, 20:lcyan, 25:green, 30:lgreen, 35:brown, 40:yellow, 45:red, 50:lred, 55:magenta, 60:lmagenta, 65:dgray, 70:lgray, 75:white

and velocity is:

-100:off, 0:blue, 5:lblue, 10:cyan, 15:lcyan, 20:green, 25:lgreen, 30:brown, 35:yellow, 40:red, 45:lred, 50:magenta, 55:lmagenta, 60:dgray, 65:lgray, 70:white

Satellite Enhancement

Satellite enhancement uses the existing color fill setup where values can be specified for colors. The major differences are as follows:

The color fill file or more appropriately the enhancement file has an additional line at the beginning of the file that names the enhancement. This will show up if a color bar is added to the plot. Here is the MB enhancement file:

@name Enh MB[C]
@value
57:black
29:gray1
gray2-gray19
6:gray20
gray21-gray31
-31:gray32
-32:Cyan1
-36:Cyan2
-40:Cyan3
-44:Cyan4
-48:Cyan5
-52:Cyan6
-54:Blue6
-56:Blue5
-58:Blue4
-60:Blue3
-62:Blue2
-64:Green1
-66:Green2
-68:Green3
-70:Green4
-72:Green5
-74:Green6
-76:Yellow1
-79:Yellow2
-81:Yellow3
-84:Yellow4
-86:Yellow5
-88:Yellow6
-90:black

Additional Attributes

Attribute Description
co=color Specifies the color. This is the color name from the color table. If this is the first attribute, the "co=" may be omitted.
fi=fill
fp=fill
Specifies the fill pattern. Possible values are:
  • sol - solid fill (number 0)
  • st - stippled fill (number 1)
  • ost - open stippled (number 2)
  • rst - random stipple (number 3)
  • lst - large stipple (number 4)
  • vln or || - vertical lines (number 5)
  • drl or // - diagonal lines moving to upper right (number 6)
  • dlr or \\ - diagonal lines moving to lower right (number 7)
  • hln or -- - horizontal lines (number 8)
  • hat or XX - hatched lines (number 9)
  • 0% - 0 % fill (number 10)
  • 1% - 11% fill (number 11)
  • 2% - 22% fill (number 12)
  • 3% - 33% fill (number 13)
  • 4% - 44% fill (number 14)
  • 5% - 55% fill (number 15)
  • 6% - 66% fill (number 16)
  • 7% - 77% fill (number 17)
  • 8% - 88% fill (number 18)
  • 9% - 100 % fill (number 19)
  • ## - a number associated with the above patterns
fo=font Specifies the font name to use in text. See the resrc:font_list resource for available font names.
sh=width Specifies the width of the drop shadow to be applied to plotted items. The default is none. A typical value is 2 or 3.
sc=scale
hi=height
Specifies the scale factor. For text, this is the text height. For markers, this is the size of the marker. The default value is 1.0.
st=style Specifies the style of lines. Possible values are:
  • sol - solid lines (number 1)
  • dsh - dashed lines (number 2)
  • lsdsh - long short dashed lines (number 3)
  • llsdsh - long, long, short dashed lines (number 4)
  • dot - dotted lines (number 5)
  • # - a number corresponding to the above styles
te=expan Specifies the text expansion factor. This controls how wide text is plotted. An expansion factor greater than 1 results in fat text. A value less than 1 results in thin text. The default value is 1.0.
we=width Specifies the width of lines used in text (software fonts) and markers. The default value is 1.0.
wi=width Specifies the width of lines. The default value is 1.0.

Last updated December 2013