visual3d:documentation:reports:2d_horizontal_bar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:reports:2d_horizontal_bar [2024/06/19 12:53] – sgranger | visual3d:documentation:reports:2d_horizontal_bar [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{{{{{{{{{====== | + | ====== |
- | **this is especially useful for creating on/ | + | ===== Draw horizontal |
- | |this example | + | **This is especially useful for creating ON/OFF bars for EMG data**. An example |
- | as a simple example, create a p2d signal representing the frames and on/off values | + | |This example creates a line that is ON/OFF to express when an EMG signal is expected to be ON/OFF through the gait cycle (red line in picture on right): |
+ | |||
+ | As a simple example, create a P2D signal representing the frames and ON/OFF values | ||
< | < | ||
- | ! make the global | + | ! make the GLOBAL |
- | select_active_file | + | Select_Active_File |
- | /file_name=global | + | /FILE_NAME=GLOBAL |
- | ! /query= | + | ! /QUERY= |
; | ; | ||
- | ! create a signal of on/off values | + | ! create a signal of ON/OFF values |
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=list(vector(0,1),vector(1,0),vector(2,1),vector(3,0),vector(4,1)) | + | /EXPRESSION=LIST(VECTOR(0,1),VECTOR(1,0),VECTOR(2,1),VECTOR(3,0),VECTOR(4,1)) |
- | /result_types=p2d | + | /RESULT_TYPES=P2D |
- | /result_folders=bars | + | /RESULT_FOLDERS=BARS |
- | /result_name=bar1 | + | /RESULT_NAME=BAR1 |
- | ! /apply_as_suffix_to_signal_name=false | + | ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE |
; | ; | ||
</ | </ | ||
- | the resulting signal is: | + | The resulting signal is: |
- | bargraph1.jpg | + | {{: |
- | create | + | Create |
- | bargraph2.jpg | + | {{: |
- | ====== simple horizontal line ====== | + | ===== Simple Horizontal Line ===== |
- | |this example is to create a simple horizontal line straight across using p2d signals (purple line in graph on right): | + | |This example is to create a simple horizontal line straight across using P2D signals (purple line in graph on right): |
- | create | + | Create |
< | < | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression= | + | /EXPRESSION= |
- | list ( | + | LIST ( |
- | | + | |
- | | + | |
- | ! /signal_types= | + | ! /SIGNAL_TYPES= |
- | ! /signal_folder=original | + | ! /SIGNAL_FOLDER=ORIGINAL |
- | ! /signal_names= | + | ! /SIGNAL_NAMES= |
- | /result_types=p2d | + | /RESULT_TYPES=P2D |
- | /result_folders=horizon | + | /RESULT_FOLDERS=HORIZON |
- | /result_name=global::fifty | + | /RESULT_NAME=GLOBAL::FIFTY |
- | ! /apply_as_suffix_to_signal_name=false | + | ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE |
; | ; | ||
</ | </ | ||
- | |plot the p2d signal: | \\ p2d_horizontal_graph_definition.png| | + | |Plot the P2D Signal: | \\ {{: |
- | }}}}}}}}}} |
visual3d/documentation/reports/2d_horizontal_bar.1718801607.txt.gz · Last modified: 2024/06/19 12:53 by sgranger