2d graph of signals of arduino

Thanks josephh for the help and the welcome. but i change this one, the other generates me a Error

if (vals.length != 0) {
  plot2.addPoint(i, vals[1]);
}

the code is good
A last Question you have any idea if can i draw a other graph in the same plot with this library if you have other forums can be help me.

import grafica.*;
1 Like