added plotmat.py