Plot Transform Functions#
In the Roboto Visualizer, the Y Transform field in the plot series settings lets you apply a mathematical formula to transform the Y values of a series. This is useful for unit conversion, normalization, scaling, and other on-the-fly calculations.
The formula is written as an expression in terms of the variable y, which represents the
raw signal value at each point in time.
Examples#
Formula |
Effect |
|---|---|
|
Convert radians to degrees |
|
Convert m/s² to g-force |
|
Convert metres to feet |
|
Linear scale and offset (replace |
|
Absolute value |
|
Square root |
|
Round to two decimal places |
|
Natural logarithm |
Supported Operators#
Operator |
Description |
|---|---|
|
Addition |
|
Subtraction |
|
Multiplication |
|
Division |
|
Modulo (remainder) |
|
Exponentiation (e.g. |
Supported Functions#
Function |
Description |
|---|---|
|
Absolute value |
|
Square root |
|
Raise |
|
Sine (argument in radians) |
|
Cosine (argument in radians) |
|
Tangent (argument in radians) |
|
Natural logarithm (base e) |
|
Exponential (e raised to the power |
|
Smaller of two values |
|
Larger of two values |
|
Round to the nearest integer |
|
Round down to the nearest integer |
|
Round up to the nearest integer |
Supported Constants#
Constant |
Value |
|---|---|
|
π ≈ 3.14159265358979 |
|
e ≈ 2.71828182845905 |
Usage Notes#
The variable
yis the only supported input variable. It represents the raw signal value at a given timestamp.Functions and constants are case-sensitive: use
sqrtnotSqrt, andPInotpi.
Beyond Dynamic Transforms#
The Y Transform field is designed for simple, single-variable expressions. If your use case requires something more complex — such as combining multiple signals, applying stateful filters, resampling, or computing rolling statistics — consider creating a derived topic as part of your ingestion pipeline using a Roboto Action.
An Action runs on hosted compute after a file is ingested and can write new topics back to Roboto using the Python SDK. Those derived topics then appear alongside the original signals in the visualizer and can be plotted directly, without any runtime transform.
See Process data with actions and Create your own action for a full walkthrough, and the Python SDK reference for the topic-writing APIs.