auto_legend_replace#

prefs.auto_legend_replace(p0: str) int#

Preference that will cause legends to be automatically replaced when the current legend is no longer in use (i.e. no parts are colored by the variable) and a new variable is in use.

Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.prefs.auto_legend_replace("ON")
Returns:

zero on success, non-zero on error