CURVE SET Y AT X

Finds the point in a curve whose X value matches the given X, then overwrites its Y value with a new Y. Use this worker when you need to surgically edit a single data point in a curve without affecting the rest of the series.

When to use

Classification: process.

Tagged: curve, point_edit, set_y, transform, y_at_x.

Inputs

Label ID Type Default Required Description
Base Curve base_curve vector   The input curve (X/Y vector) to be modified; the worker locates the target point by its X coordinate and replaces its Y value in-place.
X x scalar   The X coordinate (scalar) of the point to be updated; must match an existing X value in the base curve.
New X new_y scalar   The replacement Y value (scalar) to assign to the curve point located at the specified X coordinate.

Outputs

Label ID Type Description
curve_set_y_at_x_output_1 curve_set_y_at_x_output_1 vector The modified curve with the Y value at the specified X replaced by the new Y; all other points remain unchanged.

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_set_y_at_x


Auto-generated from transformation schema. Worker id: curve_set_y_at_x. Schema hash: 3f88782388f2. Hand-curated docs in workerexamples/ override this page when present.