type#
- legend.type(p0: str) int #
Set the type of bar to use for color representation of legend values.
A continuous bar shows all the variations as one color changes to another, while a discrete bar shows the color at the levels only.- Args:
- p0:
‘bar_type’
continuous
discrete
- Examples:
ensight.legend.select_palette_begin("pressure") ensight.legend.type("discrete") ensight.legend.select_palette_begin("velocity") ensight.legend.type("continuous")
- Returns:
zero on success, non-zero on error