value#

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

Sets the value to associate with a level in the palette.

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:

‘var_value’ variable value to assign to the 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