Reference Guide > Graphics and Plotting Keywords > C_Labels Keyword
  

C_Labels Keyword
Used With Routines:   CONTOUR,   CONTOURFS,   CONTOUR2,   MAP_CONTOUR
Corresponding System Variable: None.
Specifies which contour levels should be labeled. By default, every other contour level is labeled.
C_Labels overrides this default and explicitly specify the levels to label. This parameter is a vector, converted to integer type if necessary. If the Levels keyword is specified, the elements of C_Labels correspond directly to the levels specified, otherwise, they correspond to the default levels chosen by CONTOUR. Setting an element of the vector to zero causes that contour label to not be labeled. A nonzero value forces labeling.
 
note
If the CONTOUR2 Fill keyword is used, labeling is disabled. Refer to the description of CONTOUR2 in the PV-WAVE Reference for an example of how to create a filled contour plot with labels.
Example
To produce a contour plot with four levels where all but the third level is labeled:
CONTOUR, Z, Levels=[0.0, 0.25, 0.75, 1.0], $
   C_Labels=[1, 1, 0, 1]
Use of this keyword implies use of the Follow keyword.

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.