Exportgraphics and TiledLayout: Figure Handle vs TiledLayout handle?

12 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Steven Lord
Steven Lord il 25 Giu 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.

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by