Functions
plot
Plots given lists as individual signals (#1).
Plots given signals using global config map and individual maps with series (#2).
Arguments
signals - series to be plotted
config - global config map, which includes following keys (all of them are optional):
| KEY |
TYPE |
VALUE |
DEFAULT |
| title |
string |
The title of plot written at the very top of it. |
- |
| output |
string |
The output image file name. If passed, plot is not displayed. |
- |
| format |
string |
The format of output image. Applicable only when output is passed. |
png |
Available formats:
| KEY |
TYPE |
VALUE |
REQUIRED? |
DEFAULT |
| name |
string |
The name of series (will be applied in legend). |
Yes |
- |
| y |
list<int, float> |
The data to be plotted. |
Yes |
- |
| x |
list<int, float> |
The X series (horizontal axis). |
No |
0, 1, 2, ... |
Example
fft
Returns a signal passed through FFT/radix-2 algorithm as a list of floats.