Exportgraphics and TiledLayout: Figure Handle vs TiledLayout handle?

17 次查看(过去 30 天)
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?

采纳的回答

Steven Lord
Steven Lord 2020-6-25
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by