python - 如何使用matplotlib和numpy绘制热力图
高洛峰
高洛峰 2017-04-17 17:59:37
0
1
949

现有3个list

x = [x0, x1, x2, ..., xn]
y = [y0, y1, y2, ..., yn]
v = [v0, v1, v2, ..., vn]

希望可以据此生成热力图,效果类似http://stackoverflow.com/questions/21663358/gnuplot-heatmap-xyz 答案里的效果。搜索了一些类似的问题但是好像不太一样(http://stackoverflow.com/questions/14391959/heatmap-in-matplotlib-with-pcolor).

谢谢!

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
刘奇

Maybe you can refer to the content of the link below

http://discuss.analyticsvidhya.com/t/how-to-plot-heat-map-in-python/1922/2

In addition, if you are not limited to matplotlib, you can try Plotly

https://plot.ly/python/heatmaps/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template