int casting for index in legend for multiple tests
Merge pull request #8 from fariza/integer-plot-index

int casting for index in legend for multiple tests