1 year ago

#384517

test-img

techenthu

How to preserve font size of plots during report generation in MATLAB?

Is there a way to preserve font size in plots when using report generation? I update the fontsize of figures to 14 before making a report but the following instructions in Matlab during reporting create a temporary snapshot with the default font size of 12.

figReporter = Figure("Source",figure(n),"SnapshotFormat","png");
imgPath = getSnapshotImage(figReporter,rpt);

Can anyone suggest how to approach this and generate reports with the updated font size in plots? The plots below show the difference before and after the report generation. The font size reduces when checked in the report generated.

After updating font size, before adding into report via generation After adding into report, the font size reduces to the default size

matlab

plot

report

matlab-figure

font-size

0 Answers

Your Answer

Accepted video resources