Remove white/blank space from plot

Is there any way to remove the areas or reduce the blank parts of the plot as much as possible?

3 件のコメント

Walter Roberson
Walter Roberson 2022 年 8 月 11 日
Is this in the context of subplot()? Is it in the context of tiledlayout? Is it in the context of using saveas() or print() or exportgraphics() ?
Luccas S.
Luccas S. 2022 年 8 月 11 日
I'm saving the images as eps, using saveas()
Adam Danz
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
Rik 2022 年 8 月 11 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

タグ

質問済み:

2022 年 8 月 11 日

回答済み:

Rik
2022 年 8 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by