orientation#
- legend.orientation(p0: str) int #
Set the legend bar to be either vertical or horizontal.
The normal orientation is vertical. If orientation is set to horizontal, be aware that width is now in the y-direction, height in the x-direction, and that label sizes become more important to avoid overlaps (even though it will attempt to alleviate this by alternating sides if needed).- Args:
- p0:
‘layout’
vertical
horizontal
- Examples:
ensight.legend.select_palette_begin("velocity") ensight.legend.visible("ON") ensight.legend.orientation("horizontal") ensight.legend.select_palette_begin("pressure") ensight.legend.orientation("vertical")
- Returns:
zero on success, non-zero on error