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;
40 Form(
"Correlations between MVA input variables (%s)",
41 classnames[ic].
Data()),
42 ic*(width+5)+200, 0, width, width );
45 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
77 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
85 TString fname = dataset+
"/plots/";
void imgconv(TCanvas *c, const TString &fname)
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
R__EXTERN TStyle * gStyle
TFile * OpenFile(const TString &fin)
std::vector< TString > GetClassNames(TDirectory *dir)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
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.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
std::vector< std::vector< double > > Data
Base class for several text objects.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
Double_t GetX1NDC() const
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
Service class for 2-Dim histogram classes.
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetX1NDC(Double_t x1)
char * Form(const char *fmt,...)
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
void correlationsMultiClass(TString dataset, TString fin="TMVA.root", Bool_t isRegression=kFALSE, Bool_t greyScale=kFALSE, Bool_t useTMVAStyle=kTRUE)
Describe directory structure in memory.
virtual void SetTicks(Int_t valuex=1, Int_t valuey=1)
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
void SetPaintTextFormat(const char *format="g")
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual void Update()
Update canvas pad buffers.
TList * GetListOfFunctions() const
The palette painting class.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
virtual void SetLabelSize(Float_t labelsize)
virtual void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis' labels.
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
const char * Data() const