ChartDirector 7.0 (Python Edition)

ContourLayer.getCrossSection


Usage

getCrossSection(x0, y0, x1, y1)

Description

Get the cross section between two points on a contour layer.

Note: This method should be used only after ChartDirector has output the chart image, or after BaseChart.layout has been called.

This method will return an array of numbers representing the z values of evenly spaced samples along a straight line joining the two end-points. The end-points are specified in pixel coordinates. If the input are data values, they can be converted to pixel coordinates using XYChart.getXCoor and XYChart.getYCoor.

Arguments

ArgumentDefaultDescription
x0(Mandatory)The x pixel coordinate of the first end-point.
y0(Mandatory)The y pixel coordinate of the first end-point.
x1(Mandatory)The x pixel coordinate of the second end-point.
y1(Mandatory)The y pixel coordinate of the second end-point.

Return Value

An array of numbers epresenting the z values of evenly spaced samples along a straight line joining the two end-points. The array can contain NoValue if