FunctionRacerProblemsRace

Numbers on a Heatmap

MediummatplotlibPython

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
The chart to draw in example 1 of Numbers on a Heatmap

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems