add plot of resmat