- #1
Jozefina Gramatikova
- 64
- 9
- TL;DR Summary
- Visualising a matrix in Python
As part of a group project, we have been asked to create a code which produces the following matrix:
I want to create the graphics of this in a way that looks similar to this:
But of course with different number of cells, different colours, etc. The problem is that from what I have found online is that this works if you have only numbers in your matrix, but here we have x,w,m,o. This is the main bit of the program:
I have tried to use imshow and matplotlib to create the graphics, but it didn't work. Please tell me what I need to type. Thank you.
I want to create the graphics of this in a way that looks similar to this:
But of course with different number of cells, different colours, etc. The problem is that from what I have found online is that this works if you have only numbers in your matrix, but here we have x,w,m,o. This is the main bit of the program:
I have tried to use imshow and matplotlib to create the graphics, but it didn't work. Please tell me what I need to type. Thank you.