matplotlib heatmap
Python hosting: Host, run, and code Python in the cloud!
A heatmap can be created using Matplotlib and numpy.
Related courses
If you want to learn more on data visualization, this course is good:
Heatmap example
The histogram2d function can be used to generate a heatmap.
We create some random data arrays (x,y) to use in the program. We set bins to 64, the resulting heatmap will be 64x64. If you want another size change the number of bins.
|
Result:
The datapoints in this example are totally random and generated using np.random.randn()
Posted in plotting
Leave a Reply: