Transposed the matrix after multiplication
Ready to be merged. Added tests for line magic and figure