1) That's plotGraph().

2) I would remove the if(equity != 0). The order of plots is determined by the order of their first call, so make sure that their first call order is not wildly different dependent on equity.