I want to make a matrix that looks like the following

Currently I'm trying to acquire the above matrix for Django test cases. However, coverage.py(the coverage tool that I'm using) doesn't seem to support such feature of acquiring test coverage matrix. Is there any other way?