Python Heat Maps

It is also a type of the Maps given the graphical representation by the heating images,For a very different value a completely different colour can also be used.

Program

from pandas import DataFrame
import matplotlib.pyplot as plt

info=[{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16},{17,18,19,20}]
index= ['1', '2','3','4','5']
column= ['1', '2', '3','4']
abc = DataFrame(info, index=index, columns=column)

plt.pcolor(abc)
plt.show()

Output

Subscribe Now