필터 지우기
필터 지우기

I need a help?

조회 수: 2 (최근 30일)
Phung Minh
Phung Minh 2018년 9월 29일
댓글: Rik 2018년 9월 29일
Hi everyone, I have a problem with my figure. My code:
somun=[0 0.2 0.5 0.8 1 1.5 2 3 4 5 6 7 8 9 10]';
Buk_coffecient=[...
7012.26 775.968 35.8488 3.55954
7296.98 830.493 37.1051 3.7077
7506.14 838.193 38.024 3.81528
7623.1 852.734 38.5353 3.87488
7675.48 859.207 38.7631 3.90136
7762.34 869.922 39.1389 3.94507
7818.47 875.013 39.3804 3.97329
7894.38 881.292 39.7055 4.01173
7948.59 885.601 39.9375 4.03951
7991.29 888.903 40.1204 4.0616
8026.31 891.562 40.2706 4.07985
8055.69 893.76 40.3967 4.09522
8080.71 895.624 40.5043 4.10836
8102.29 897.217 40.597 4.11972
8121.07 898.596 40.6779 4.12963];
figure
hold on
plot(somun,Buk_coffecient(:,1),'-og','LineWidth',1.5);
plot(somun,Buk_coffecient(:,2),'-^r','LineWidth',1.5);
plot(somun,Buk_coffecient(:,3),'-*c','LineWidth',1.5);
plot(somun,Buk_coffecient(:,4),'-','LineWidth',1.5);
set(gca,...
'Units','normalized',...
'Position',[0.15 0.2 .7 .75],...
'FontUnits','points',...
'FontWeight','bold',...
'FontSize',12, ...
'FontName','Times')
ylabel('Buckling coefficient','Fontsize',12, 'FontName','times')
xlabel('n ','Fontsize',12, 'FontName','times')
% grid on
legend('b/h=10','b/h=20','b/h=50','b/h=100','Fontsize',5)
% title('xet diem giua tam, n = 1, a/b = 1')
box
Then I have a figure as follow
So as you can see the 2 bottom lines are very strict to see. I want to solve this like this figure
That means I can see clearly all lines in the figure. Thank you!
  댓글 수: 1
John D'Errico
John D'Errico 2018년 9월 29일
Please don't add an answer just to make a comment.

댓글을 달려면 로그인하십시오.

채택된 답변

Rik
Rik 2018년 9월 29일
You can set the y-scale to logarithmic with this
set(gca,'YScale','log')
  댓글 수: 2
John D'Errico
John D'Errico 2018년 9월 29일
Moved:
"Thank you so much"
Rik
Rik 2018년 9월 29일
You're welcome. If this solved your issue, please hit the 'accept answer' button. If not, please comment below with your remaining issues.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by