How might i write a superimposed histogram with multicolour to in a root file

I tried to write a superimposed histogram with a part of my script as shown below, however, it saved the superimposed histogram with colourless or its colour into a rootfile!

I mean that the histogram has multicolour drawing but not filling !

How might i “write” a superimposed histogram with multicolour to in a root file…

HistGains[0]->Draw("AXIS");
HistGain[0][0]->Draw("same");
HistGain[0][1]->Draw("same");

HistGains[0]->Write();
HistGain[0][0]->Write();
HistGain[0][1]->Write();

Thanks for your help,
Cheers,
Ersel

To keep the graphics layout you should saved the canvas containing the histograms, not the individual
histograms.

Yeah, of course…
Thank you very much

Cheers,
Ersel