Levels... Setting the Contour Bands
Levels... Setting the Contour Bands
This panel (the standard panel in all contouring contexts) controls the contour levels and colours displayed.

Value formats
To change the format of the values on the contour bar, use the following section of the panel:

Contour ramp options
By default, PRIMER uses a rainbow contour ramp to plot results. However, this does not have perceptual uniformity, i.e. when printed in greyscale it is not possible to distinguish each colour.
To improve this, there are a number of different contour ramps that can be used instead which are perceptually uniform: Viridis, Plasma, Magma, and Inferno. The contour ramp colour options are as shown below:
| ![]() |
|---|
A preference can be set to change the default ramp from rainbow to one of these options, e.g.:
primer*contour_ramp: VIRIDIS
Contour level options
A radio button for contour level options is available on this panel:

If a component has discrete data, these options will only be available when discrete contouring is disabled | ![]() |
|---|
Automatic levels
In this mode, this panel does not define the contour band values themselves, contour level values are uniformly distributed between the upper and lower bounds:
The upper and lower bounds are controlled in the Settings... panel, together with the display mode for items outside these bounds.
The number of levels can be controlled by the '#Levels' slider:

User-defined levels
When the values are unordered (not ascending), the 'Sort levels' button will become available and can be used to sort the values into ascending order. | |
|---|---|
The '#Levels' slider is not available in this mode but values can be added or deleted with the popup menu from the value textboxes. | ![]() |
Points to note:
- This mode is not available when the data component that is being contoured has integer data.
- The min and max values specified in the Settings... panel do not affect any contour values when we are in this mode.
User-defined levels Matl props → Density example:

Other settings
The Levels... panel also allows you to specify:
- The contour colour of each level: click on the colour of the level to modify.
- Whether to do discrete contouring: see the 'Disable discrete contours' option
- This is the same as the 'Disable discrete contouring' option on the Settings... panel.
- See this page for further explanation and an example (Shell Thk → Shell Thk).



