26 Int_t ncls = (isRegression ? 1 : 2 );
27 TString hName[2] = {
"CorrelationMatrixS",
"CorrelationMatrixB" };
28 if (isRegression) hName[0]=
"CorrelationMatrix";
30 for (
Int_t ic=0; ic<ncls; ic++) {
34 cout <<
"Did not find histogram " << hName[ic] <<
" in " << fin << endl;
38 TCanvas*
c =
new TCanvas( hName[ic],
40 (isRegression ?
"" : (ic==0 ?
"signal" :
"background"))),
44 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
48 c->SetLeftMargin ( newMargin2 );
49 c->SetBottomMargin( newMargin2 );
50 c->SetRightMargin ( newMargin1 );
51 c->SetTopMargin ( newMargin1 );
57 h2->SetMarkerSize( 1.5 );
58 h2->SetMarkerColor( 0 );
60 h2->GetXaxis()->SetLabelSize( labelSize );
61 h2->GetYaxis()->SetLabelSize( labelSize );
62 h2->LabelsOption(
"d" );
63 h2->SetLabelOffset( 0.011 );
69 TPaletteAxis* paletteAxis = (TPaletteAxis*)
h2->GetListOfFunctions()->FindObject(
"palette" );
76 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
84 TString fname =
dataset+
"/plots/";
R__EXTERN TStyle * gStyle
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
virtual TObject * Get(const char *namecycle)
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void SetLabelSize(Float_t size=0.035)
Double_t GetX1NDC() const
virtual void SetX1NDC(Double_t x1)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void SetPaintTextFormat(const char *format="g")
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void Initialize(Bool_t useTMVAStyle=kTRUE)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void correlations(TString dataset, TString fin="TMVA.root", Bool_t isRegression=kFALSE, Bool_t greyScale=kFALSE, Bool_t useTMVAStyle=kTRUE)