Plot coloured line(s) in 3 dimensions in the current figure.


h = col_line3(x,y,z,c)% Matlab & Octave
col_line3(x,y,z,c)#R

Plot coloured line(s) in 3 dimensions in the current figure.

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
z A vector or matrix of points on the third axis. N/A
c A vector or matrix of values representing the colour to draw at each point. N/A
Additional inputs for rgl::plot3d() N/A
Output var Description Units
h is a vector of patch handles which can be used with 'set' to change properties of the line. For example: set(h,'LineWidth',8) will make the line wider. N/A
  • x, y, z 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.

Matlab & Octave

col_line3(1:20, 1:20, 1:20, 1:20)
ans =

   3.6621e-04
   

R

col_line3(1:20, 1:20, 1:20, 1:20)

bugs@animaltags.org Last modified: 8 June 2017

  • tagwiki/tools/plotting/col_line3.txt
  • Last modified: 2017/07/27 19:21
  • by das39