Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Getting specific aspect ratios for this graph?

1 回表示 (過去 30 日間)
Jenniluyn Nguyen
Jenniluyn Nguyen 2020 年 2 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello! Thanks in advance for your help. Here is the code that I currently have:
LRatio = [0.0004 0.15 108 150 13400 34000];
RRatio = [0.18 0.76 3.7 3.5 7.8 8];
TempK = [3130 4280 9400 13260 22400 28200];
Sun = 1;
SunTemp = 5840;
plot(TempK,LRatio);
set (gca,'xdir','reverse');
ax = gca;
ax.XRuler.Exponent = 0;
And my figure looks like this:
fig1.jpg
Because of the large difference in values of numbers on the y axis, the graph doesn't look great. What would be the best way to fix this? I would even be okay with just "lifting the line up a bit but I'm not sure how to do that in code. Thank you!

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 2 月 9 日
I would consider using semilogy()
Anyhow you can use ylim() with a lower bound that is a bit negative. I suspect that you might need at least -50 to make a visual difference.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by