Skip to content

animatedline

plot · scripts/plot/draw/animatedline.m

ANIMATEDLINE  Line that grows point by point (MATLAB compat).
  GitLab #345, #1477, #2176

  h = animatedline
  h = animatedline (x, y)
  h = animatedline (x, y, z)
  h = animatedline (..., Name, Value)  includes MaximumNumPoints
  h = animatedline (ax, ...)
  Use addpoints (h, x, y) to append, getpoints (h) to read back.

  MaximumNumPoints defaults to 1e6 (MATLAB R2026a).  When the stored
  point count exceeds the limit, the oldest points are dropped.