How do I improve the quality of my plots?

4 views (last 30 days)
Yami on 30 Mar 2022
Answered: Rahul Singhal on 20 Apr 2022
I'm adding figures to a matlab report with the following code:
fig = [f1, f2, f3]
ch = Chapter('Name of the chapter');
for i = 1:3
Fig =;
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!

Answers (1)

Rahul Singhal
Rahul Singhal on 20 Apr 2022
Can you check by setting the Figure reporter's SnapshotFormat to be SVG or PDF, if that helps
Fig =;
Fig.SnapshotFormat = "svg";
% Fig.SnapshotFormat = "pdf";


Find more on Printing and Saving in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by