import numpy as np import matplotlib.pyplot as plt # Data data = np.random.rand(10, 6) # Create heatmap plt.imshow(data, cmap='hot', interpolation='nearest') plt.colorbar() plt.title('Heatmap') plt.show()