SWITCH X POINTS¶
Replaces the X-values of a base curve with the X-values taken from a second reference curve, keeping the original Y-values intact. Use this worker when two curves share the same number of points and X-range but you need to re-key one curve onto the other’s X-axis.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Base Curve | base_curve | vector | — | The curve whose Y-values are preserved while its X-values are replaced; must have the same number of points and X-range as the reference curve. | |
| Curve Whose X Are To Be Used | curvewhose_xaretobeused | vector | — | The reference curve whose X-values will be substituted into the base curve; must match the base curve in point count and X-range. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_switchx_output_1 | curves_switchx_output_1 | vector | Resulting curve composed of the reference curve’s X-values paired with the base curve’s Y-values, returned as a vector of (x, y) points. |
Disciplines¶
- data.curve.pair
- data.curve.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curves_switchx
Auto-generated from transformation schema. Worker id: curves_switchx. Schema hash: dec89482a83f. Hand-curated docs in workerexamples/ override this page when present.