23 TDirectory* vardir = (TDirectory*)file->
GetDirectory(dataset.
Data())->
Get(
"InputVariables_Id" );
26 Int_t ncls = classnames.end() - classnames.begin();
27 std::vector<TString> hnames(classnames);
29 const Int_t width = 600;
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;
39 TCanvas*
c =
new TCanvas( hnames[ic],
41 classnames[ic].Data()),
42 ic*(width+5)+200, 0, width, width );
45 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
49 c->SetLeftMargin ( newMargin2 );
50 c->SetBottomMargin( newMargin2 );
51 c->SetRightMargin ( newMargin1 );
52 c->SetTopMargin ( newMargin1 );
53 gStyle->SetPalette( 1, 0 );
56 gStyle->SetPaintTextFormat(
"3g" );
77 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
85 TString fname = dataset+
"/plots/";
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
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 using apath.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis' labels.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Sort bins with labels or set option(s) to draw axis with labels.
void Draw(Option_t *option="") override
Draw this histogram with options.
TList * GetListOfFunctions() const
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
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)
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual void SetNDC(Bool_t isNDC=kTRUE)
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)