【发布时间】:2021-12-23 09:45:26
【问题描述】:
我使用以下代码创建了一个热图:
import plotly.express as px
import numpy as np
img_rgb = np.array([[[255, 0, 0], [0, 255, 0], [0, 0, 255]],
[[0, 255, 0], [0, 0, 255], [255, 0, 0]]
], dtype=np.uint8)
fig = px.imshow(img_rgb)
fig.show()
当我将鼠标悬停在上面时,我可以看到“图块”的值。我希望在每个“图块”的热图中显示该值,这可能吗?
【问题讨论】: