3d Plot Coordinate Axis Settings
显示 更早的评论
I loaded the .stl file using the pdegplot (code name).
I want to erase the red arrow on the picture.
What should we do?

< my code >
H = pdegplot(GEO); grid on; axis equal; view(3);
xlabel('X(Range)'); ylabel('Y(X-Range / Azi.)'); zlabel('Z(X-Range / Ele.)');
set(HH2(1,1),'FaceColor',[0.8 0.5 0.3]);
xlim([-3 3]); ylim([-2.5 2.5]); zlim([0 3.5]);
xticks(-3:1:3); yticks(-2:1:2.5); zticks(0:1:3.5);
采纳的回答
更多回答(1 个)
Similar to Chaitanya Krishna Kantambhatla's earlier answer, but without having to use the Property inspepector, you can remove the Text label by this method (using MATLAB R2022b).
set(findall(gca,'Layer','Middle'),'Visible','Off')
Note:
@Chaitanya Krishna Kantambhatla I am still confused why the first item in the middleLayer behaives differently than the ladder two. After looking at the class properties of each item in the array, I see the first layer (the one that contains the "x", "y", and "z" text) is a different class than the other two; the axes labels are a 'matlab.graphics.primitive.world.Text'. An interesting result is when you query middleLayer(1) it will only display "Text", but without any of the visible properties. See below.
>> middleLayer = findall(gca,'Layer','Middle')
middleLayer =
3×1 graphics array:
Text
Text
Text
>> middleLayer(1)
ans =
Text
>> middleLayer(2)
ans =
Text with properties:
String: ''
FontSize: 11
FontWeight: 'bold'
FontName: 'Helvetica'
Color: [0 0 0]
HorizontalAlignment: 'center'
Position: [-1.5438 -1.5357 3.7878]
Units: 'data'
Show all properties
>> middleLayer(3)
ans =
Text with properties:
String: ''
FontSize: 11
FontWeight: 'normal'
FontName: 'Helvetica'
Color: [0 0 0]
HorizontalAlignment: 'center'
Position: [-1.5438 -1.5357 3.7878]
Units: 'data'
Show all properties
>> class(middleLayer(1))
ans =
'matlab.graphics.primitive.world.Text'
>> class(middleLayer(2))
ans =
'matlab.graphics.primitive.Text'
>> class(middleLayer(3))
ans =
'matlab.graphics.primitive.Text'
类别
在 帮助中心 和 File Exchange 中查找有关 General PDEs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


