yeatmanlab / AFQ

Automated Fiber Quantification
74 stars 52 forks source link

Small bug in AFQ_RenderFibers #15

Open roeysc opened 7 years ago

roeysc commented 7 years ago

Hi all, In line 352 of AFQ_RenderFibers there's a very small bug, leading to error if when trying to plot 3 fibers, with a profile per-point colors for each fiber. To avoid this, I suggest changing:

if size(color,1) == 1 && size(color,2) == 3

to:

if size(color,1) == 1 && size(color,2) == 3 && ~iscell(color)

Best, Roey