gpt4 book ai didi

python - 使用 matplotlib 的热图

转载 作者:太空宇宙 更新时间:2023-11-04 06:07:35 24 4
gpt4 key购买 nike

是否可以使用 matplotlib 进行此类绘图?还是有点接近?

我知道可以使用填充,但我不确定 block 纹理。

谢谢。

]

最佳答案

这些类型的地 block 称为 Treemaps

A Treemap is a space-constrained visualization of hierarchical structures. It is very effective in showing attributes of leaf nodes using size and color coding. Treemap enables users to compare nodes and sub-trees even at varying depth in the tree, and help them spot patterns and exceptions.

它们是递归构建的,因此很难发布完整的示例。可以找到使用 matplotlib 的 Treemaps 的小食谱 here .

相关问题:

Python graph like windirstat?

Treemap visualization in Python

关于python - 使用 matplotlib 的热图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21123617/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com