label_visible#

contour.label_visible(p0: str) int#

Turn labels on or off for contour parts.

The contour labels are shown as integer values indicating the contour level which corresponds to the color palette level.
Level 1 is the lowest level for the color palette.
Subcontours are not labeled.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
#
# Modify an existing contour part to show labels
#
ensight.part.select_begin(3)
ensight.part.modify_begin()
ensight.contour.label_visible("ON")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error