Ben*_*aua 5 python image matplotlib
我想在 3D 空间中显示多个图形。
到目前为止,我使用THIS在 3D 空间中得到了一个矩形:
相关代码片段:
# Draw a rectangle on the x=0 'wall'
p = Rectangle((6.5,2.5),5,5,90)
ax.add_patch(p)
art3d.pathpatch_2d_to_3d(p, z=5, zdir="x")
Run Code Online (Sandbox Code Playgroud)
其中“矩形”是指 matplotlib.patches.rectangle
现在,矩形是蓝色的。我可以将其更改为图像吗?