How do I improve the quality of my plots?
2 次查看(过去 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!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/946714/image.png)
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!