<< ExportSpectralAnalysis Cardio Vascular toolbox PlotBaroreflexAnalysis >>

Cardio Vascular toolbox >> Cardio Vascular toolbox > MultiChannelPlot

MultiChannelPlot

Plot mutichannel signals using subplots

Calling Sequence

Ax = MultiChannelPlot(t,sig_1,label_1,..., sig_n,label_n [,options])

Parameters

t
A real vector of length n, The time.
sig_i
A real vector of length n or a 2D real array with n rows: the signal values. If it is an array all the columns will be plotted in a single subplot with different colors.
label_i
A character string: the y axes label of the associated subplot.
option
An optionnal struct with possible fields:
  • curve_colors: a vector of color index: the colors of for signal curves. If several signals are drawn in a given subplot, the ith curve will be represented using option.curve_colors(i) color. The default value is [color('blue'), color('magenta'), color('black'), color('red'), color('orange'), color('green')] .
  • grid_color: a color index, the grid colors. The default value is color("gray").
  • title: a character string. The graph title.
  • font_style: The axes font style index. The default value is 6. See axes_properties for details.
  • font_size: The axes font size index. The default value is 1. See axes_properties for details.
Ax
a vector of axes handles. The axes handles of the subplots.

Description

Plot mutichannel signals using subplots. The Scroll allows to manage scrolling over the time. The Set scroll length submenu allows to specify the time width of the scrolling window, the scroll length default value is a tenth of the total time range. The Scroll on submenu enables the scrolling mode: to scroll over the time use the left and right directional arrows, to go back to full view hit the q key. The Scroll off submenu disable the scrolling mode.

Remark: If datatips tool is used while in Scroll mode, user needs to set the Scroll mode on for further scrolling.

Examples

The following code :

t=linspace(0,500,5000)';
opt=struct();opt.title="MultiChannelPlot";
Ax=MultiChannelPlot(t,sin(t),"sin(t)",[sin(2*t) sin(3*t)],"y",sin(t)^3,"sin(t)^3",opt);
legend(Ax(2),["sin(2*t)","sin(3*t)"]);

produces this plot:

Using the Scroll menu and datatips on can obtain:

See Also

Authors

<< ExportSpectralAnalysis Cardio Vascular toolbox PlotBaroreflexAnalysis >>