Improves graphing of matrices

Still needs more work