altmany / export_fig

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

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

Open Springder opened 6 months ago

Springder commented 6 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?