range#
- contour.range(p0: float, p1: float) int #
Specifies the minimum and maximum contour levels when contours are not tied to the variable palette.
Only used when “contour: sync_to_palette OFF”- Args:
- p0:
‘min’ The minimum contour value
- p1:
‘max’ The maximum contour value
- Examples:
# # Create contours on part 2 # ensight.part.select_begin(2) ensight.contour.begin() ensight.contour.variable("temperature") ensight.contour.sync_to_palette("OFF") # # create 8 contours from 0 to 4.5 using a quadratic distribution # ensight.contour.distribution("quadratic") ensight.contour.range(0.,4.5) ensight.contour.levels(8) # # turn on labels spaced every 2 units # using a floating point representation with 2 decimal places # ensight.contour.label_visible("ON") ensight.contour.label_spacing(2.0) ensight.contour.label_format("floating_point") ensight.contour.label_decimal_places(2) ensight.contour.end() ensight.contour.create()
- Returns:
zero on success, non-zero on error