如何获得/ y坐标轴标签显示正确吗?
1视图(30天)
显示旧的评论
我编写一个项目,想输出4块在一起平铺的布局。然而两个情节(底部两个)只显示1轴标签而不是其他。我怎么解决这个问题?
下面是平铺的布局的代码和结果图:
% ECLIPJ2000
图(11)
tcl = tiledlayout (2, 2);
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
zlabel (“z(公里)”)
轴平等的
网格在
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
轴平等的
网格在
视图(0,90)
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“z(公里)”)
轴平等的
网格在
视图(90 0)
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“y”(公里))
ylabel (“z(公里)”)
轴平等的
网格在
视图(0,0)
标题(tcl,“ECLIPJ2000框架”)
0评论
接受的答案
图像分析
2023年4月29日
你没有设置
所有
这些情节的标签,具体地说,你不设置垂直轴标签底部两个情节。尝试设置所有3标签无论视图,视图应该显示正确。我们不能运行您的代码,因为你没有包括state_f1_storage变量。
% ECLIPJ2000
图(11)
tcl = tiledlayout (2, 2);
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
zlabel (“z(公里)”)
轴平等的
网格在
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
zlabel (“z(公里)”)
轴平等的
网格在
视图(0,90)
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
zlabel (“z(公里)”)
轴平等的
网格在
视图(90 0)
nexttile
:plot3 (state_f1_storage (1), state_f1_storage (2:), state_f1_storage (3,:))
持有在
plot3 (state_f1_storage (1, 1), state_f1_storage (2, 1), state_f1_storage (3,1),“og”,“线宽”,2)
plot3 (state_f1_storage (1) state_f1_storage (2) state_f1_storage (3),“处方”,“线宽”,2)
椭球(0,0,0,6.25,6.25,6.25)
持有从
包含(“x(公里))
ylabel (“y”(公里))
zlabel (“z(公里)”)
轴平等的
网格在
视图(0,0)
标题(tcl,“ECLIPJ2000框架”)