是否可以使用 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 .
