検索

ホームページ  >  に質問  >  本文

python - 如何使用matplotlib和numpy绘制热力图

现有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).

谢谢!

高洛峰高洛峰2886日前981

全員に返信(1)返信します

  • 怪我咯

    怪我咯2017-04-17 18:01:37

    以下のリンクの内容を参照してください

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

    matplotlib に限定されない場合は、Plotly を試すことができます

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

    返事
    0
  • キャンセル返事