Numbers on a Heatmap
Show the table grid as a heatmap: an image in which each cell is colored by its value, with a colorbar beside it. Then write each cell's value, as text, at the center of the cell. Return the figure.
Checked: the grid of values and the texts and where they sit.
Example 1
grid [[1,2,3],[4,5,6]]
draws

Constraints
- 1 to 6 rows and 1 to 6 columns of whole numbers
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More matplotlib problems
- Price and Its AverageMedium
- Shade the RangeMedium
- Two ScalesMedium
- Two Spreads, Same BinsMedium
- Bell Over the BarsHard
- Biggest First, With a Running ShareHard
- CandlesHard
- Correlation PictureHard