Why the resolution of the plot is bad when I plot longer data?

The m-file 'procKM_tide.m' reads data file 'KM_tde.xlsx' and plot tidal data. I can't understand why the output figure shown on screen and png file present bad resolution. If I plot shorter duration of data, say 2022/12/1 ~ 2023/2/10, the resolution is OK! Why? Any solution?

回答 (1 件)

Mathieu NOE
Mathieu NOE 2024 年 1 月 19 日

0 投票

Hello
your line is probably too thick
so change this parameter in this line
plot(tj2,zl,'b-','linewidth',1);%,'markersize',0.5);
I think linewidth value 0.5 to 1 is the optimal range
no need to increase the 300 DPI resolution , it's enough for what we do here

2 件のコメント

Ihuan LEE
Ihuan LEE 2024 年 1 月 20 日
Thank you for your answer. You can see the attachments, *1.png is during 2022/12/1 ~ 2023/2/28, *2.png is during 2022/12/1 ~ 2023/2/20. (just set " dayend=28 or 20" in m-file) Rresolution of *1.png is bad !
Mathieu NOE
Mathieu NOE 2024 年 1 月 22 日
IMHO the resolution seems good , but if you want a better picture you can try with a higher DPI
have you tried for example with 600 or 1000 DPI ?

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

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

製品

リリース

R2023b

タグ

質問済み:

2024 年 1 月 19 日

コメント済み:

2024 年 1 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by