Skip to content

Neuro-Mechatronics-Interfaces/MATLAB_Data_Plots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

+plot

Package for basic MATLAB data plots.

Usage

See function descriptions, or help plot in the MATLAB editor for usage details.

Git

To add this file as a submodule package to a MATLAB project:

  1. Open a git bash in the desired project folder.
  2. Use the following syntax to add the submodule as a package folder:
git submodule add [email protected]:Neuro-Mechatronics-Interfaces/MATLAB_Data_Plots.git +plot

Contents

Labeling Utilities

  • add_multi_ylabel - Adds multiple y-axis labels to an axis with customized alignment, color, spacing, and font options.
  • add_scale_bar - Adds a scale bar to an existing axis, with customizable units, color, and position.
  • add_titles - Adds a title and subtitle to an axis with customizable font and color options.

General Plotting Utilities

  • correlation - Plot correlation (optionally specifying an axes handle).
  • get_parent_figure - Returns the parent figure even if it's not directly 'Parent' in the tree of the provided graphics object.
  • parameters - Return parameters struct, which sets default values for things like epoch durations etc.
  • raincloud - Plots a combination of half-violin, boxplot, and raw.
  • raster - Plot raster pulse trains from cell array of sample times.
  • time_amp_axes - Return figure and axes handle for time-vs-amplitude axes.
  • time_trial_axes - Return figure and axes handle for time-vs-trials axes.
  • tt_spline - Plot smoothing spline fitted model from time table.

EMG-Specific Plots

Abstract-Concept Plots

  • direct_form_I - Plot Direct Form-I implementation block diagram and pole/zero plot.
  • direct_form_II - Plot Direct Form-II implementation block diagram and pole/zero plot.

Experiment-Specific Plots