Save figure to image file with tight borders for LaTeX

I like to create vectorized PDF images for LaTeX documents. This function creates images that are ready to include; no cropping required.
ダウンロード: 373
更新 2021/10/23

ライセンスの表示

Saves a MATLAB figure to an image file with tight borders. I like to use vectorized PDF files for LaTeX documents. Images saved using this function don’t need to be manually cropped.
For newer versions of MATLAB, use the saveas() function instead of this function. In newer versions of MATLAB, saveas() saves figures to match the size of the figure on the screen by default. Previously, saveas() saved figures to 8-by-6 inches by default – this left the user to manually crop the figure to remove large borders. The newer behavior started in version R2016a, according to saveas() documentation, but I’ve observed the 8-by-6 inch default in R2016b.

引用

Anthony Ricciardi (2024). Save figure to image file with tight borders for LaTeX (https://www.mathworks.com/matlabcentral/fileexchange/32773-save-figure-to-image-file-with-tight-borders-for-latex), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2016b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.0.2

Comment character updates

2.0.1

Comment character updates

2.0

Updated from an informal example script to a function file. Programming style updated. Context added based on MATLAB updates.

1.0.0.0