.. _auto_curve_set_constant_y_value: *SET CONSTANT Y-VALUE TO ALL X-POINTS* ====================================== Replaces every Y value of the input curve with a single constant, while preserving all original X points. Use this worker to flatten a curve or create a constant baseline from an existing X-axis grid. When to use ----------- Classification: **process**. Tagged: ``constant``, ``curve``, ``flatten``, ``set_constant_y_value``, ``transform``, ``y-value``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Curve - curve - vector - — - - Input curve (X/Y vector) whose Y values will be overwritten; all original X points are preserved in the output. * - Constant Y-value - y_value - text - 0 - - Scalar constant to assign to every Y point of the curve; defaults to 0 if left unset. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - Curve with constant value - curve_set_constant_value_y - vector - Output curve with the same X points as the input but with every Y value replaced by the specified constant. 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_constant_y_value `_ .. raw:: html

Auto-generated from transformation schema. Worker id: curve_set_constant_y_value. Schema hash: 24f8379e4279. Hand-curated docs in workerexamples/ override this page when present.