PERFORM AN SCALE FOLLOWED BY AN OFFSET FOR X AND Y AS SPECIFIED BELOW¶
Applies an independent scale and offset to both the X and Y axes of a curve, computing new_x = x_scale * (x + x_offset) and new_y = y_scale * (y + y_offset). Use this worker whenever a curve needs unit conversion, axis normalisation, or a simple affine transformation.
When to use¶
Classification: process.
Tagged: affine, curve_transform, offset, scale, scaleandoffset, x_offset, x_scale, y_offset.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve To Be Scaled | curvetobescaled | vector | — | Input curve (X/Y vector pair) to be transformed; must be provided as a d3VIEW curve object — all scale and offset operations are applied to this curve. | |
| X Scale | x_scale | float | 1.0 | Multiplicative scale factor applied to each X value after the X offset is added (dimensionless float); default 1.0 leaves X magnitude unchanged. | |
| Y Scale | y_scale | float | 1.0 | Multiplicative scale factor applied to each Y value after the Y offset is added (dimensionless float); default 1.0 leaves Y magnitude unchanged. | |
| X Offset | x_offset | float | 0.0 | Constant value added to every X coordinate before scaling (same units as the X axis); default 0.0 applies no shift. | |
| Y Offset | y_offset | float | 0.0 | Constant value added to every Y coordinate before scaling (same units as the Y axis); default 0.0 applies no shift. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_scaleandoffset_output_1 | curve_scaleandoffset_output_1 | vector | Transformed curve (X/Y vector pair) with the scale and offset applied to both axes, ready for downstream processing or plotting. |
Disciplines¶
- 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=curve_scaleandoffset
Auto-generated from transformation schema. Worker id: curve_scaleandoffset. Schema hash: ffa3191a0510. Hand-curated docs in workerexamples/ override this page when present.