Fixed stats.py
Merge pull request #8 from deepakn94/stats_fix

Bugfixes in stats_matplotlib.py