在带有matplotlib的python中,矩形补丁可以具有图像纹理/填充吗?

时间:2020-03-31 13:54:11

标签: python image matplotlib

我想在3D空间中显示几个数字。

到目前为止,我使用THIS在3D空间中得到了一个矩形:

Matplotlib figure

相关代码段:

# 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")

其中“矩形”是指matplotlib.patches.rectangle

现在,矩形为蓝色。我可以将其更改为图像吗?

0 个答案:

没有答案