フィルターのクリア

Why would the same x and y data points be plotted differently on UIaxis (app designer)?

1 回表示 (過去 30 日間)
Hello all,
I need to know something about figures in the app designer, which I am not able to understand. I am plotting two figures for the same x and y data points but those figures trun out to be different. Can anybody explain, where am I doing wrong? Here is the explanation:
Figure 1(first attachment): This is plotted (data points: x =[353 423 625]; y = [1461 1760 2614];) in a complex code.
Figure 2 (second attachment): I have plotted externally by manullay inserting those x and y data points in a much simpler code.
I do not understand why would Figure 1 and Figure 2 look different given the fact that the same data points are being plotted?
any leads will be much appreciated. Thank you.
  2 件のコメント
Divija Aleti
Divija Aleti 2021 年 6 月 21 日
Hi Raju,
In your first attachment, it looks as though the y-axis units aren't spaced uniformly.
Could you send your complex code which resulted in this plot? It would be helpful for reproducing the same result and also for debugging.
Walter Roberson
Walter Roberson 2021 年 6 月 21 日
ylim is different, which would give a different appearance.

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

採用された回答

DGM
DGM 2021 年 6 月 21 日
Somewhere along the way, it looks like you're setting the y-scale to logarithmic.
x =[353 423 625]; y = [1461 1760 2614];
plot(x,y)
set(gca,'yscale','linear')
plot(x,y) % same data
set(gca,'yscale','log') % different scale
If you don't know where/how that's happening, you might need to post some code
  1 件のコメント
Raju Kumar
Raju Kumar 2021 年 6 月 25 日
Hi DGM,
Yes. You're right. I managed to find out later. But Thanks. I should have mentioned.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by