I am new to using matplotlib. I am trying to create a 2D grid using matplotlib. This is my first time using matplotlib for something non-trivial.
I decided to break the task into 3 parts:
Create a grid table (shown below), color the corresponding columns and correctly mark the axis. This is what I most need help with. My initial idea is to store table data in a dictionary list (or list of lists); the data structure could contain some metadata about which columns were colored, and then I could just create a matplot graph from this data, but I did not conspire with matplotlib and could get started with some help.
Select a character (for example, "X") in the grid cell with coordinates (row, column)
Save the grid table as an image (it's easy, I can do it myself)
Here is an image of the grid table I'm looking to create using matplotlib:

I would be very grateful for any help that will make me start.
PS: the image is not very well reflected. The horizontal lines in the table have the same weight (i.e., Thickness), so the visual effect of the grid table should look like an Excel sheet.
[[Edit / Update]]
Just to clarify what I'm trying to create, this is a kind of chess board. I managed to modify the Ricardo code snippet published in his answer so that it is as close as possible (with my limited matplotlib skills!) To this game board as I can. However, there are a few things that are "missing":
The designations of the x-axis columns are strings, not numbers, they are string labels, for example. AB1, AB2, AB3, etc. In addition, these marks are midpoints (i.e., they are centered or lie BETWEEN with the x axis axes - not on the ticks themselves)
I need to write characters in a specific column for a given y axis value, for example, I can write the text "foo" with the y axis value of -1565.5 in the column "AB2".
Once I have this, I’m sure I can hack something together to get into the game I'm trying to write, especially since I just bought a copy of Matplotlib for Python developers.
source share