IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
plot_curve_pieces.m File Reference

Detailed Description

Plots a curve in pieces if there is a discontinuity in the x-axis.

Mimics the plot() function, but does several plots if x does not have the same increment step.

If the 'color' option is not passed in varargin, will rotate the colors in the COLORS global

Definition in file plot_curve_pieces.m.

Go to the source code of this file.

Functions

function plot_curve_pieces (in x, in y, in varargin)
 

Function Documentation

function plot_curve_pieces ( in  x,
in  y,
in  varargin 
)
Parameters
xvector of dimension [1]x[nf]
yVector or matrix of dimension [nf]x[no]. The dimensions here are inverted to keep consistent with the plot() function
vararginWill be by-passed to MATLAB's plot()
Returns
handles a cell of handles