MATLAB Answers

Exportgraphics and TiledLayout: Figure Handle vs TiledLayout handle?

9 views (last 30 days)
Matthew on 25 Jun 2020
Answered: Steven Lord on 25 Jun 2020
In the documentation for exportgraphics, when saving a multi-panel plot make with TiledLayout, the TiledLayout handle is passed to exportgraphics and not the figure handle?
Why is that?
Is the outcome different if you were to use the figure handle versus the tiledlayout handle?


Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 25 Jun 2020
From the documentation page for the exportgraphics function the relevant detail to me is "The graphics object can be any type of axes, a figure, a chart that can be a child of the figure, a tiled chart layout, or a container within the figure. The resulting graphic is tightly cropped to a thin margin surrounding your content." [Emphasis added.]
If the tiled chart layout is inside a figure, it's likely not going to take up the entire area inside the figure. So the graphic created from the tiled chart layout is likely to be smaller than the one created from the figure.


Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!

Translated by