Remove white/blank space from plot
15 次查看(过去 30 天)
显示 更早的评论
Is there any way to remove the areas or reduce the blank parts of the plot as much as possible?
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!