added plotting pwla; untested.