我正在学习Bokeh并运行以下示例:
from bokeh.charts import HeatMap, output_file, show
import pandas as pd
output_file('heatmap.html')
df = pd.DataFrame(
dict(
apples=[4, 5, 8],
bananas=[1, 2, 4],
pears=[6, 5, 4],
),
index=['2012', '2013', '2014']
)
p = HeatMap(df, title='Fruits')
show(p)
它与预期不符:
http://bokeh.pydata.org/en/0.9.3/docs/user_guide/charts.html#heatmap
有人有任何想法来修复颜色吗?谢谢!