col_line
Plot coloured line(s) in 2 dimensions in the current figure.
Syntax
h = col_line(x,y,c) % Matlab & Octave col_line(x,y,c) #R
Description
Plot coloured line(s) in 2 dimensions in the current figure.
Inputs
Input var | Description | Default value |
---|---|---|
x | A vector or matrix of points on the horizontal axis. | N/A |
y | A vector or matrix of points on the vertical axis. | N/A |
c | A vector or matrix of values representing the colour to draw at each point. | N/A |
… (R only) | Additional inputs for plot() | N/A |
Notes & assumptions
- x, y and c must all be the same size.
- If x, y, and c are matrices, one line is drawn for each column.
- The color axis will by default span the range of values in c, i.e., caxis will be c(min(min©), max(max©)). This can be changed by calling caxis after colline.
Example
Matlab & Octave
R
About
bugs@animaltags.org Last modified: 8 June 2017