sublevels#
- contour.sublevels(p0: int) int #
Add a specified number of contours distributed between the main contour levels.
- Args:
- p0:
‘num’ Number of contours to create between the main contour levels.
- 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 off the visibility of the main contours and turn # subcontours on - make 2 subcontours between each of the 8 levels. # ensight.contour.levels_visible("OFF") ensight.contour.sublevels_visible("ON") ensight.contour.sublevels(2) ensight.contour.end() ensight.contour.create()
- Returns:
zero on success, non-zero on error