Correlation heatmap

后端 未结 4 1882
傲寒
傲寒 2020-11-29 20:07

I want to represent correlation matrix using a heatmap. There is something called correlogram in R, but I don\'t think there\'s such a thing in Python.

How can I do

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 20:15

    1. Use the 'jet' colormap for a transition between blue and red.
    2. Use pcolor() with the vmin, vmax parameters.

    It is detailed in this answer: https://stackoverflow.com/a/3376734/21974

提交回复
热议问题