Line with variable width and Cdata coloring
8 views (last 30 days)
I am able to plot a line with a separate data vector specifying the CData by plotting a surface and viewing it from the side:
h = surface('XData',[x(:) x(:)], 'YData',[y(:) y(:)], 'ZData',zeros(length(x(:)),2), 'CData',[c(:) c(:)], 'FaceColor','none', 'EdgeColor','flat', 'Marker','none');
I would now like to vary the width of the line according to the CData as well. Is there any function or suggested way to do this?