Added matrix plotting