Added matrix ploting functions