Iterative graphing working for three graphs