Remove white/blank space from plot
24 ビュー (過去 30 日間)
古いコメントを表示
Is there any way to remove the areas or reduce the blank parts of the plot as much as possible?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1094330/image.png)
3 件のコメント
Adam Danz
2022 年 8 月 11 日
Use exportgraphics and if that doesn't give you a the clipping you want, create the axes with tiledlayout using padding='tight'.
回答 (1 件)
Rik
2022 年 8 月 11 日
This answer will only work for raster images (so it will not work for eps).
I use a pragmatic approach. I export in high resolution to a raster image and then use the attached function to crop the border. It is not optimal, but it allows me to use the default for most graphics functions, while still ending up with border-less image.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!