3D Lines, Points, Grids, and Triangulations

GX-TXT P011-bis · Scientific Dataset Plot 4.4.2

Choose the representation according to the relationship between coordinates, cells and samples. The same Dataset can be valid for scatter3 and rejected by a grid type.

Shape combinations

Type
line3
XYZ table in rows
Sortable XYZ samples
Canonical rank-two
Rejected
Independent C
Rejected
Type
scatter3
XYZ table in rows
XYZ samples, irregular too
Canonical rank-two
Rejected
Independent C
Allowed
Type
surface
XYZ table in rows
Complete rectangular grid
Canonical rank-two
Allowed by the native variant
Independent C
Allowed
Type
mesh
XYZ table in rows
Complete rectangular grid
Canonical rank-two
Allowed by the native variant
Independent C
Allowed
Type
contour3
XYZ table in rows
Complete rectangular grid
Canonical rank-two
Allowed by the native variant
Independent C
Rejected
Type
trisurf
XYZ table in rows
Samples triangulable in XY
Canonical rank-two
Rejected
Independent C
Allowed
Type
heatmap
XYZ table in rows
Complete rectangular grid
Canonical rank-two
Allowed by the native variant
Independent C
Allowed

Compare a legacy Run on the table and Save and render on a variant with the same IDs. For rank-two, see also the limits of the common Run.

line3 · trajectory

Use three numeric vectors of the same length. The renderer connects the samples in the Dataset order or by increasing X with sort_x. To try it, use the sparse CSV and leave Color on auto without selecting a C column. An explicit C is rejected. Families can separate trajectories.

3D line with the points connected in order.
3D line with the points connected in order. Enlarge

scatter3 · cloud

Use numeric X, Y and Z of the same length. The cloud does not require a mesh. Duplicate XY coordinates can have different heights. An explicit scalar C colors the points and can feed the colorbar. The point size comes from Marker size.

Three-dimensional point cloud.
Three-dimensional point cloud. Enlarge

surface, mesh and contour3

In a long table, each group must contain each X/Y combination of the rectangular grid once. The physical order of the rows can differ from the mesh order. A hole or a duplicate pair causes rejection even when the display budget would exclude that point. Try the sample with duplicates (ZIP) with surface and compare with the complete grid.

  • surface fills the faces of the grid. For the downloadable sample, compare unassigned Color and intensity_V.
  • mesh highlights the mesh. Width and color can be adjusted in the paths that support them.
  • contour3 builds levels from the surface Z. Try two values of Contour levels and leave C without an explicit binding.
Continuous surface on the rectangular cells of the grid.
Continuous surface on the rectangular cells of the grid. Enlarge
Grid mesh with highlighted edges.
Grid mesh with highlighted edges. Enlarge
Contour lines extracted from the grid cells.
Contour lines extracted from the grid cells. Enlarge

trisurf · irregular coordinates

This type triangulates the XY projection of the existing samples. Use the sparse CSV. Do not apply Family grouping if each group has too few points. Collinear points or a degenerate set do not define faces. Check the rejection with the degenerate sample (ZIP). C can color the face values depending on the rendering, while the height stays Z.

Surface with triangular faces.
Surface with triangular faces. Enlarge

heatmap · planar view

In this product heatmap requires the grid. X/Y remain physical coordinates on the plane, Z controls the color scale. Use the planar output if you need to read the spatial distribution without perspective. Without C the color represents Z. The test grid also renders with an explicit C in volts.

Planar XY map with Z encoded by the color scale.
Planar XY map with Z encoded by the color scale. Enlarge

Canonical Y×X grid

The script publish_grid_fixtures.py (ZIP) publishes rank-one X and Y axes, Z with dimensions ordered Y then X, and C with the same shape and the same dimension IDs. The valid example is 4×5. The axes are strictly monotonic and can be decreasing. A non-monotonic axis, swapped shape or dimensions, non-finite cells and incompatible C are separate test cases. The Family option and minmax are rejected when the rank-two grid is used.

P011-bis · Run with rank-two. With a valid canonical matrix as Primary, the base Run can stop with Octave Script Bridge is already active. An enabled rank-two variant can also stop the Run with a tabular Primary and the message Variable height_mm is not table-shaped. Create a variant with the XYZ bindings of the grid and explicitly use Save and render. Disable the rank-two variant before the common Run. See the check sequence.

The Run on the rank-two canonical grid stops in P011-bis.
The Run on the rank-two canonical grid stops in P011-bis. Enlarge
The native variant accepts the 4 × 5 canonical matrix and colors it with C.
The native variant accepts the 4 × 5 canonical matrix and colors it with C. Enlarge