I am plotting several lists in a loop and am wondering how to get loop counter in plot legend? For example, if I consider the following simple code, then I get a legend box