TimeSeriesDiff¶
Show the difference between two time series.
This can be used to analyze, for instance, the effect of artifact removal on the data. Scaling is based on the last provided stream that is displayed, therefore for before/after processing comparisons, it is recommended to use data1 for the least processed version, and so forth. This node displays missing channels and missing time windows as gaps in the plot. Version 0.9.0
Ports/Properties¶
data1¶
First time series.
data2¶
Second time series.
data3¶
Third time series (optional).
stream¶
Name of stream to display. The first stream whose name starts with this string is displayed.
stream_name¶
scale¶
Data scale. Increasing this value will magnify the plot curves correspondingly. A scale of 1 will scale the data such that the next channel is at 1 std. dev. of the previous channel.
title¶
Title of the plot. This is the title of the plot window. Placeholders like $(streamname1) or $(sourceid1) can be used here.
line_colors¶
Color of the graph curves. See background_color for the color format.
line_opacities¶
Set the opacity (alpha) values (0-1) for each of the graph curves in order of the data inputs. Higher values are more opaque (less transparent).
marker_color¶
Color of vertical lines for marker events. Either a string or a dictionary that represents a mapping from event type to color (the special key '*' stands for all other markers).
decoration_color¶
Color of the axis decorations.
figure_background_color¶
Background color for figure window (outside plot axes). This can be given in hexadecimal (web) notation (#RRGGBB). For instance 00 is zero, 7F is half brightness, and FF is full brightness, so #FF00FF yields a color that is a mix of bright red and blue, i.e., bright purple). Alternatively, named matplotlib colors can be used, such as red or blue.
plot_background_color¶
Background color for inside plot (within x/y axes). This can be hexadecimal (web) notation (#RRGGBB) or CSS named colors ('white'). For instance 00 is zero, 7F is half brightness, and FF is full brightness, so #FF00FF yields a color that is a mix of bright red and blue, i.e., bright purple).
background_color¶
This parameter is being deprecated in favor of the combination of "figure_background_color" and "plot_background_color" to separate the colors outside the plot and within the plot (x/y axes), respectively.
line_width¶
Line width for plotting.
zeromean¶
Display data with mean corrected to zero. This makes sure that each channel is centered for better viewing. If this is disabled, your data may be outside the window, especially if you have not performed high-pass filtering on your signal. Enabling this may make the curves appear to shift up or down if their mean is not already zero.
autoscale¶
Automatically scale channels to a standard scale. This makes sure that channels are rescaled such that they fit comfortably in the drawing area. All channels are rescaled by the same scale factor. Enabling this may make the curves appear to change scale suddenly, especially when large artifacts come into view or go out of view.
show_markers¶
"Whether to show event markers. If 'none', no markers are shown. If 'last', only the last marker stream is shown. If 'all', all marker streams are shown.
antialiased¶
Draw graphics antialiased. If enabled, the lines will appear less pixelated or 'jaggy', however, this can slow down plotting.
simplification¶
Simplify graphics finer than this threshold. Increasing this can be used to speed up drawing for many channels and time points.
max_gap_len¶
Maximum gap length in seconds. Samples that are separated by a gap larger than this will have no connecting line drawn between them.
correct_filter_lag¶
Correct for filter lag. If enabled, the data is shifted by the filter lag recorded in the respective stream to allow for perfect super-position of data from different processing chains.
t0_is_zero¶
Count time from zero. If set to False, the time starts at whatever is the first time stamp in the data.
data_margins¶
Margins around the data area. The first value is the horizontal margin (left and right), in seconds. The second value is the vertical margin (top and bottom), in units of channels, i.e., a value of 3 will leave a gap 3 channels worth above and below the data.
xtick_interval¶
Interval of timestamps (in seconds) to display.
window_dims¶
Initial position of the window on the monitor. If this is set to empty, then no window will be shown (e.g., if you only export to a file). This is given in pixels, and is formatted as [x, y, width, eight]. If x, y are set to 0 each, then the window will appear in the top left corner of the screen.
export_dims¶
Dimensions of the exported figure. This is given in pixels, and is formatted as [width, height]. Only used when save_to_file is set.
save_to_file¶
If set, the plot will be saved to the specified file. The file format is determined by the file extension.
export_only¶
If set to True, only export and save the specified file (no interactive plot).
dpi¶
DPI (dots per inch) for plotting. Note this value can significantly affect the size of the output file (if saving to disk).
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.