Limits on a line plot

3 ビュー (過去 30 日間)
Cody Kessler
Cody Kessler 2021 年 4 月 13 日
コメント済み: Star Strider 2021 年 4 月 13 日
I'm stuggling to make a good looking line graph. I beleive the problem is the range the data is being plotted to. My x values range from 10e-13 to 10e-18 but when I enter lim(x) it returns ans =
1.0e-13 *
0 0.5000.
Even when I enter xlim([1E-18 1E-13]) it still gives me the same result. Here is how my plot looks right now:
Vs what I was able to plot in excel:
It's been a while since I've plotted anything using Matlab, so any help would be great!
  1 件のコメント
Cody Kessler
Cody Kessler 2021 年 4 月 13 日
Forgot to mention that I'm using R2021a.

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2021 年 4 月 13 日
It may simply be necessary to ‘stretch’ the figure.
Try something like this:
pos = get(gcf, 'Position');
set(gcf, 'Position',pos+[0 0 500 0])
see Figure Properties for more options.
  2 件のコメント
Cody Kessler
Cody Kessler 2021 年 4 月 13 日
Stretching it did not fix it completly, but I found some things in the Figure properties that fix my issue. Thank you so much!
Star Strider
Star Strider 2021 年 4 月 13 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by