text_position#

legend.text_position(p0: str) int#

Set the visibility and location of legend labels in relation to the legend color bar.

Args:
p0:

‘location’

  • left

  • right

  • none

Examples:
ensight.legend.select_palette_begin("pressure")
ensight.legend.text_position("left")
ensight.legend.select_palette_begin("velocity")
ensight.legend.text_position("right")
ensight.legend.select_palette_begin("temperature")
ensight.legend.text_position("none")
Returns:

zero on success, non-zero on error