Update ploTRA.py

Add: average function splitted