edit_level#

function.edit_level(*args, **kwargs) Any#

Sets the level in the palette for which value or color will be set/modified.

Each level has a value and a color associated with it. Interpolations occur between the levels according to the type and scale used.
Args:
p0:

‘num’ level number (1 based, with 1 being the lowest level)

Examples:
ensight.function.palette("N_temperature")
ensight.function.modify_begin()
ensight.function.number_of_levels(6)
ensight.function.edit_level(2)
ensight.function.value(9.6464e+00)
ensight.function.edit_level(3)
ensight.function.value(1.9283e+01)
ensight.function.edit_level(4)
ensight.function.value(2.8919e+01)
ensight.function.edit_level(5)
ensight.function.value(3.8556e+01)
ensight.function.edit_level(6)
ensight.function.value(4.8192e+01)
ensight.function.edit_level(1)
ensight.function.rgb(5.0000e-01,0.0000e+00,1.0000e+00)
ensight.function.edit_level(2)
ensight.function.rgb(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.function.edit_level(3)
ensight.function.rgb(0.0000e+00,1.0000e+00,1.0000e+00)
ensight.function.edit_level(4)
ensight.function.rgb(0.0000e+00,1.0000e+00,0.0000e+00)
ensight.function.edit_level(5)
ensight.function.rgb(1.0000e+00,1.0000e+00,0.0000e+00)
ensight.function.edit_level(6)
ensight.function.rgb(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.function.modify_end()
Returns:

zero on success, non-zero on error