Matplotlib How to Create Heatmaps in Matplotlib Create and customize heatmaps directly in Matplotlib with imshow() and pcolormesh().