I need a help?

3 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by