Exportgraphics and TiledLayout: Figure Handle vs TiledLayout handle?

16 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

Steven Lord
Steven Lord le 25 Juin 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.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by