How to remove specific box lines in 3d plot?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello everyone,
I would like to remove only specific box lines. Is there a way around it?
Default:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1382334/image.png)
How I would prefer it:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1382339/image.png)
Thanks for your time.
댓글 수: 0
답변 (1개)
chicken vector
2023년 5월 13일
편집: chicken vector
2023년 5월 13일
Bit artificious but does the trick:
z = 0:0.05:10*pi;
x = cos(z);
y = sin(z);
figure;
hold all;
plot3(x,y,z)
% Remove box lines:
box off;
% Plot back lines:
ax = gca;
plot(ax.XLim,repmat(ax.YLim(1),1,2),'k');
plot(repmat(ax.XLim(1),1,2),ax.YLim,'k');
view([1 1 1]);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!