Hello,
I define both different styles; one is in my rootlogon.C called style1 and the other is define in a macro called style2.
I plot several histograms and I would like use these two styles depending on the histogram.
For example, I have
TH1F *h1 = new TH1F("h1","h1", 500, 0, 500);
TH1F *h2 = new TH1F("h2","h2", 500, 0, 500);
TH2F *h3 = new TH2F("h3","h3", 500, 0, 500, 500, 0, 500);
...(I fill every histo)
h1->Draw("");
h2->Draw("");
h3->Draw("col");
I would like apply style1 to h1 and h3 and style2 to h2. How can I do that?
I tried some different option like
gROOT->SetStyle("style1");
gROOT->ForceStyle();
or
TStyle *style1 = gROOT->GetStyle("style1");
style1->cd();
but without result.
Thanks.