How do I improve the quality of my plots?
1 回表示 (過去 30 日間)
古いコメントを表示
I'm adding figures to a matlab report with the following code:
import mlreportgen.report.*
fig = [f1, f2, f3]
ch = Chapter('Name of the chapter');
for i = 1:3
Fig = mlreportgen.report.Figure(fig(i));
add(ch,Fig);
end
Report generator creates a pdf file with the figures. The problem is that for some plots (like the second one), the quality is really poor.
Does anyone have an idea why this is happening?
Thank you!
0 件のコメント
回答 (1 件)
Rahul Singhal
2022 年 4 月 20 日
Fig = mlreportgen.report.Figure(fig(i));
Fig.SnapshotFormat = "svg";
% Fig.SnapshotFormat = "pdf";
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Specifying Target for Graphics Output についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!