How to remove whitespace around subplot figures?
212 ビュー (過去 30 日間)
I'm writing a report in LaTeX in which I need to include some MATLAB figures. One of them is a subplot consisting of 16 plots which I ordered (manually, using subplot('Position',...)) in a 6x3 matrix (leaving 2 blancs ofcourse). However, when I export the figure as a png file, there's loads of whitespace on both sides of my figure. I have fumbled around with the PaperPosition parameter but this didn't help me at all. Does anyone know how to crop the 'paper' tightly around my figure?
PS. the method explained on http://nibot-lab.livejournal.com/73290.html doesn't seem to work on a subplot figure as a whole...
その他の回答 (2 件)
Jan 2011 年 6 月 29 日
編集済み: Jan 2017 年 8 月 20 日
I'd expect that PDF or EPS are a better format for embedding graphics in a LaTeX report.
Instead of cropping the PNG, you can increase the space for the subplots:
FigH = figure('DefaultAxesPosition', [0.1, 0.1, 0.8, 0.8]);
[EDITED] The property is called 'DefaultAxesPosition', not 'DefaultAxesPosition*s*'.