Plot mutichannel signals using subplots
Ax = MultiChannelPlot(t,sig_1,label_1,..., sig_n,label_n [,options])
n
, The time.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.i
th
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')]
.color("gray")
.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.
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: