mpl_toolkits.mplot3d.art3d.patch_collection_2d_to_3d#

mpl_toolkits.mplot3d.art3d.patch_collection_2d_to_3d(col, zs=0, zdir='z', depthshade=True)[源代码][源代码]#

PatchCollection 转换为 Patch3DCollection 对象(或将 PathCollection 转换为 Path3DCollection 对象)。

参数:
col : PatchCollectionPathCollectionPatchCollection 或 PathCollection

要转换的集合。

zs浮点数或浮点数数组

zdir 轴上放置补丁的集合中的位置或位置。默认值:0。

zdir{'x', 'y', 'z'}

放置补丁的轴。默认值:“z”。有关值的描述,请参见 get_dir_vector

depthshadebool, 默认: True

是否为补丁添加阴影以增加深度感。