set cthick

This command sets the thickness for the contour lines.


set cthick thickness

The thickness arg must be an integer in the range of 1 to 12 (or 256 for version 2.1 and later)

Usage Notes

When using GrADS version 2.0.2 and earlier, for the X window display and the image output (e.g. PNG), a thickness setting between 1 and 5 will result in contour lines approximately one pixel wide; a thickness between 6 and 11 will result in contour lines two pixels wide, and a thickness of 12 will give contour lines approximately three pixels wide. For the vector graphics output (e.g. PostScript and Encapsulated PostScript) the contour line thickness will increase with each increment in the thickness value.

If using GrADS version 2.1 and later with the Cairo graphics library enabled, then each thickness setting will increment the contour line thickness, for the X window display and all hardcopy output formats.

The default line widths for thickness settings between 1 and 12 are: 0.6, 0.8, 1.0, 1.25, 1.5, 1.75, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0. The units will depend on the surface being drawn to (pixels or points). In GrADS version 2.1 and later, there is a new command, set lwid, that allows the user to define a new line thickness setting if the 12 default widths are unsatisfactory.

The default thickness setting for contour lines is 4. The thickness setting is reset after each clear command, or when a reset or reinit command is issued.


Note the (2nd example will only work with version 2.1 or later)

set cthick 6

set lwid 13 1.6
set cthick 13