altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.27k stars 365 forks source link

How to output an image of a specified size? #390

Open Springder opened 3 months ago

Springder commented 3 months ago

Requirement: After cropping, I want to output an image of a specific size, such as 10cm x 8cm.

Question: I can set the size of the Figure in centimeters ahead of time. But if I want to remove the white edges on output, the actual image size will be smaller.

Can any of you please help me out with a solution to this problem?