legend#

annotation.legend(p0: str) int#

Toggles visibility of all visible legends.

Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.legend.select_palette_begin("pressure")
ensight.legend.visible("ON")
ensight.legend.select_palette_begin("velocity")
ensight.legend.visible("ON")
ensight.legend.select_palette_begin("pressure")
ensight.legend.select_palette_begin("pressure")
ensight.legend.location_x(3.2353e-01)
ensight.legend.location_y(5.3681e-02)
ensight.legend.select_palette_begin("pressure")
ensight.annotation.legend("off")
Returns:

zero on success, non-zero on error