26 Int_t ncls = classnames.end() - classnames.begin();
27 std::vector<TString> hnames(classnames);
30 for (
Int_t ic=0; ic<ncls; ic++) {
31 hnames[ic] =
TString(
"CorrelationMatrix")+ hnames[ic];
33 cout <<
"Looking for histo " << hnames[ic] <<
" in " << fin << endl;
35 cout <<
"Did not find histogram " << hnames[ic] <<
" in " << fin << endl;
41 classnames[ic].Data()),
45 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
49 c->SetLeftMargin ( newMargin2 );
50 c->SetBottomMargin( newMargin2 );
51 c->SetRightMargin ( newMargin1 );
52 c->SetTopMargin ( newMargin1 );
58 h2->SetMarkerSize( 1.5 );
59 h2->SetMarkerColor( 0 );
61 h2->GetXaxis()->SetLabelSize( labelSize );
62 h2->GetYaxis()->SetLabelSize( labelSize );
63 h2->LabelsOption(
"d" );
64 h2->SetLabelOffset( 0.011 );
77 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
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".
Describe directory structure in memory.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Service class for 2-D histogram classes.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
The palette painting class.
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.
Base class for several text objects.
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)
std::vector< TString > GetClassNames(TDirectory *dir)
void imgconv(TCanvas *c, const TString &fname)
void correlationsMultiClass(TString dataset, TString fin="TMVA.root", Bool_t isRegression=kFALSE, Bool_t greyScale=kFALSE, Bool_t useTMVAStyle=kTRUE)