Added hard limits for plotmat.py