Bokehで相関ヒートマップを作成するにはどうすればよいですか?python bokeh、相関プロットを作る方法?
import pandas as pd
import bokeh.charts
df = pd.util.testing.makeTimeDataFrame(1000)
c = df.corr()
p = bokeh.charts.HeatMap(c) # not right
# try to make it a long form
# (and it's ugly in pandas to use 'index' in melt)
c['x'] = c.index
c = pd.melt(c, 'x', ['A','B','C','D'])
# this shows the right 4x4 matrix, but values are still wrong
p = bokeh.charts.HeatMap(c, x = 'x', y = 'variable', values = 'value')
ところで、プロットの伝説ではなく、横にカラーバーを作れますか?また、色の範囲/マッピングを選択する方法(例:濃い青(-1)から白(0)から濃い赤(+1))?
私が欲しいものを正確に見ている - 私は新しいリリースを待つ – jf328