%% Specify Animated Line Color
% Set the color of the animated line to red and set its line width to 3 points.

x = [1 2];
y = [1 2];
h = animatedline(x,y,'Color','r','LineWidth',3);

% Copyright 2015 The MathWorks, Inc.