open Preference: Option, go to page tab, set margin control to tight
active a graph, select Graph: merge graph to layout, set gap and layout to 0, ok ? gap and margin in layout is tight
select export layout(advanced), ok with system default setting(png type)
open the png file ==> big gap and margin
Fixed in Origin 2023.