我想在 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
现在,矩形是蓝色的。我可以将其更改为图像吗?
在excel(和Excel VBA)中,使用"&"连接文本和变量非常有用:
a = 5
msgbox "The value is: " & a
Run Code Online (Sandbox Code Playgroud)
会给
"The value is: 5"
Run Code Online (Sandbox Code Playgroud)
我怎么能在R中这样做?我知道有一种方法可以使用" 粘贴 ".但是我想知道是否有任何技巧可以像在Excel VBA中那样简单.
提前致谢.