MATLAB scripts for plotting fiber photometry data.
The repository contains the following scripts:
FPplot_whole_trace.m
: This script plots the entire recording trace and uses color blocks to indicate different behaviors.
FPplot_PSTH.m
: This script plots the average signal corresponding to a specific behavior. It offers three different options for visualizing the data.
FPplot_video.m
: This script generates an mp4 video like the following.
- The input signal file should be a
.mat
file with an arraysig_norm
, each row representing the signal for each brain region recorded. - The annotation file should be a
.txt
file output from the behavior annotator (Piotr's MATLAB toolbox or the Python version by Xingjian Zhang).