User Tools

Site Tools


visual3d:documentation:reports:2d_horizontal_bar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:reports:2d_horizontal_bar [2024/06/19 12:53] sgrangervisual3d:documentation:reports:2d_horizontal_bar [2024/07/17 15:46] (current) – created sgranger
Line 1: Line 1:
-{{{{{{{{{{====== draw horizontal bars on a report graph ======+====== 2D Horizontal Bar ======
  
-**this is especially useful for creating on/off bars for emg data**. an example of creating simple horizontal line is provided after this example.+===== Draw horizontal bars on Report Graph =====
  
-|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):  |  bargraph3.jpg|+**This is especially useful for creating ON/OFF bars for EMG data**. An example of creating simple horizontal line is provided after this 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):  |  {{:BarGraph3.jpg}}| 
 + 
 +As a simple example, create a P2D signal representing the frames and ON/OFF values
  
 <code> <code>
-! make the global workspace active+! make the GLOBAL workspace active
  
-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
 ; ;
 </code> </code>
  
-the resulting signal is:+The resulting signal is:
  
-bargraph1.jpg+{{:BarGraph1.jpg}}
  
-create report 2d graph:+Create Report 2D Graph:
  
-bargraph2.jpg+{{: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):  |  p2d_horizontal_graph.png|+|This example is to create a simple horizontal line straight across using P2D signals (purple line in graph on right):  |  {{:P2D_Horizontal_Graph.png}}|
  
-create the horizontal line as a p2d signal:+Create the horizontal line as a P2D signal:
  
 <code> <code>
-evaluate_expression +Evaluate_Expression 
-/expression+/EXPRESSION
- list + LIST 
-  vector(1,50) , +  VECTOR(1,50) , 
-  vector(101,50) ) +  VECTOR(101,50) ) 
-! /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
 ; ;
 </code> </code>
  
-|plot the p2d signal:  |  \\ p2d_horizontal_graph_definition.png|+|Plot the P2D Signal:  |  \\ {{:P2D_Horizontal_Graph_Definition.png}}| 
  
  
-}}}}}}}}}} 
visual3d/documentation/reports/2d_horizontal_bar.1718801607.txt.gz · Last modified: 2024/06/19 12:53 by sgranger