Matplotlib and seaborn 3 · Chart types
Heatmap with imshow
Show a matrix as colors, with a color scale.
grid = np.random.default_rng(2).random((6, 6))
plt.imshow(grid, cmap="magma")
plt.colorbar()
Official Matplotlib and seaborn 3 documentation
More chart types commands
All chart types commands · Matplotlib and seaborn 3 cheatsheet