Axis2D


Synopsis

create an XY-axis grid with labels based on mesh extents

Input Port

in_field

Mesh

 

Output Port

out_obj

output renderable object

 

Description

Axis2D creates a grid of lines aligned with the XY axes; the grid contains major and minor tick lines with numeric labels based on the extents of the first two dimensions of the input mesh (which is commonly included in a field). By default it creates five major axis lines in each dimension and one minor line between each pair of major lines.

Input Port

in_field

Mesh. Used to select the min and max extents of the axis grid.

Parameters

X start

UIfieldTypein. Draw only grid lines greater than this X coordinate in the input mesh's coordinate system.

X end

UIfieldTypein. Draw only grid lines less than this X coordinate in the input mesh's coordinate system.

X origin

UIfieldTypein. Draw the main Y axis line at this X coordinate. Other Y axis lines are spaced at equal intervals from this line according to X step. Note that this does not mean that this X coordinate is assigned a value of 0; it just sets the reference point for drawing lines perpendicular to the X axis. For example, if you set X origin to 200, the X value printed below that point is still 200, and perpendicular lines are drawn at 200 - X step, 200, 200+X step, 200+2(X step), and so on.

X step

UIfieldTypein. Distance along the X axis between adjacent major lines.

X labels offset

UIfieldTypein. Offset distance (-X) from the X origin (ref) to the lower left corner of the numeric labels.

X ndigits

UIslider. Number of digits after the decimal point in the X axis labels.

X minor ticks

UIslider. Number of minor tick lines drawn between each major line.

Y start

UIfieldTypein. Draw only grid lines greater than this Y coordinate in the input mesh's coordinate system.

Y end

UIfieldTypein. Draw only grid lines less than this Y coordinate in the input mesh's coordinate system.

Y origin

UIfieldTypein. Draw the main X axis line (with labels) at this Y coordinate. Other X axis lines are spaced at equal intervals from this line according to Y step. Note that this does not mean that this Y coordinate is assigned a value of 0; it only sets the reference point for drawing lines perpendicular to the Y axis. For example, if you set Y origin to 200, the Y value printed at that point is still 200, and perpendicular lines are drawn at 200 - Y step, 200, 200+Y step, 200+2(Y step), and so on.

Y step

UIfieldTypein. Distance along the Y axis between adjacent major lines.

Y labels offset

UIfieldTypein. Offset distance (-Y) from the Y origin (ref) to the lower left corner of the numeric labels.

Y ndigits

UIslider. Number of digits after the decimal point in the Y axis labels.

Y minor ticks

UIslider. Number of minor tick lines drawn between each major line.

Major Line Mode

UIradioBoxLabel. Specifies how to draw major tick lines.