gpt4 book ai didi

matlab - 为 3D 图形添加完整的 6 个边框

转载 作者:行者123 更新时间:2023-12-04 14:48:44 25 4
gpt4 key购买 nike

我使用 surf 绘制 3D 表面,并尝试使用“box on”添加边框,但它只能显示 3 个边框。看

enter image description here

但是,我真正想要的是为立方体添加所有 6 个边框,就像这样

enter image description here .

谁能告诉我怎么做?

最佳答案

您需要将轴 BoxStyle 更改为 'full',并打开 Box。例如:

[x,y] = meshgrid( 0:0.1:6, 0:0.1:6 );
surf( x, y, cos(x)+sin(y), 'LineStyle', 'none' );
set( gca, 'Box', 'on', 'BoxStyle', 'full' );

plot

关于matlab - 为 3D 图形添加完整的 6 个边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69458424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com