19 TMVAGlob::Initialize( useTMVAStyle );
24 std::vector<TString> classnames(TMVAGlob::GetClassNames(vardir));
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];
32 TH2* h2 = (
TH2*)
file->GetDirectory(dataset.
Data())->Get( hnames[ic] );
33 cout <<
"Looking for histo " << hnames[ic] <<
" in " << fin << endl;
35 cout <<
"Did not find histogram " << hnames[ic] <<
" in " << fin << endl;
40 Form(
"Correlations between MVA input variables (%s)",
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 );
77 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
85 TString fname = dataset+
"/plots/";
87 TMVAGlob::imgconv(
c, fname );
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
R__EXTERN TStyle * gStyle
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.
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
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.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
TList * GetListOfFunctions() const
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Service class for 2-Dim histogram classes.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
The palette painting class.
virtual void SetLabelSize(Float_t labelsize)
Double_t GetX1NDC() const
virtual void SetX1NDC(Double_t x1)
const char * Data() const
void SetPaintTextFormat(const char *format="g")
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, 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 correlationsMultiClass(TString dataset, TString fin="TMVA.root", Bool_t isRegression=kFALSE, Bool_t greyScale=kFALSE, Bool_t useTMVAStyle=kTRUE)