# BDT Input variable Plots Quality Graphics

**URL:** <https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989>\
**Category:** TMVA\
**Tags:** graphics\
**Created:** [July 27, 2018, 8:54am UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989 "2018-07-27T08:54:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [July 27, 2018, 8:54am UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/1 "2018-07-27T08:54:04Z")

</div>

Dear Experts,

I am making BDT input variable plots using the TMVA file (please find the file [TMVA](https://cernbox.cern.ch/index.php/s/kFY6sBKlsRnx23Z).

On lxplus what I am doing is:

setupATLAS  
lsetup “root 6.06.02-x86\_64-slc6-gcc48-opt” (Same root version used for BDT training)  
$ root -l  
root [0] TMVA::TMVAGui(“TMVA.root”)

When I click on Input variables (1a) button, I am getting the plot

 ![variables_id_c1](https://root-forum.cern.ch/uploads/default/original/3X/f/b/fb523bcd22769c4538e59bc94a4cfdfd70c70e90.png) The quality is not good, pixels are bit broken. The Under/OverFlow text on right side is cutoff. The titles are centred.

Could anyone please suggest me how I can fix it.

P.S When my colleague make same set of plots on his Mac (where he installed the same Root version and TMVA Version 4.2.1, Feb 5, 2015 which comes with the Root Version 6.06/02) he doesn’t see any problem. Title on the top left, Under/Over flow not cutoff etc. All good.

Thank you,  
Babar

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2018, 8:19am UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/2 "2018-07-30T08:19:53Z")

</div>

This is what you see on screen or the file generated by a SaveSas ?

---

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [July 30, 2018, 9:03am UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/3 "2018-07-30T09:03:36Z")

</div>

Hi,

I see on both. On screen and as well as files save as eps, png.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2018, 10:23am UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/4 "2018-07-30T10:23:11Z")

</div>

For the eps/ps/pdf output the definition should be the same on all platforms.  
May be your canvas is too small ?

---

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [July 30, 2018, 12:09pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/5 "2018-07-30T12:09:43Z")

</div>

From TMVA User Guide what I understand I am using the default settings. That means variables.C script from tmva package. In that script depending on the number of input variables it set the canvas size accordingly.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2018, 12:39pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/6 "2018-07-30T12:39:33Z")

</div>

PDF output is vector graphics there there whole be no issue with pixel. Can you try with PDF (or PS) ?

---

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [July 30, 2018, 1:11pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/7 "2018-07-30T13:11:33Z")

</div>

I am running interactive root. When I Launch GUI and click on input variable button it says

* * *

— If you want to save the image as eps, gif or png, please comment out  
— the corresponding lines (line no. 239-241) in tmvaglob.C

* * *

To save plot as PDF or PS I need to add it to those lines in tmvaglob.C file. In Root 5 the tmvaglob.C file usually I found it in root/tmva/test/ area but I couldn’t find it in Root 6. Could you please let me know where I can find that file. Then I try to make the plots in Pdf.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2018, 1:13pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/8 "2018-07-30T13:13:58Z")

</div>

![25](https://root-forum.cern.ch/uploads/default/original/3X/d/8/d894dd3e55fe03defe7b5adb4545a48e09944bf3.jpg)

---

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [July 30, 2018, 1:48pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/9 "2018-07-30T13:48:55Z")

</div>

[variables\_c1.pdf](https://root-forum.cern.ch/uploads/default/original/3X/2/c/2cd255c679e55fda55bcd2c7ca4e3059b7bfeb64.pdf) (26.6 KB)

That looks good. But the title at the center and the text cutoff still there…

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2018, 2:08pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/10 "2018-07-30T14:08:32Z")

</div>

> [@babar2141](#):
>
> But the title at the center and the text cutoff still there…

Do you see the same on the screen ? It looks like you do according to the previous plot you posted. I do not know from where this “title” is coming from. It seems to me that it is a piece of text which is too long and goes out the canvas but I would need to see the macro to tell exactly.

---

<div class="post-metadata">

**Author:** ![babar2141](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Post date:** [August 3, 2018, 2:03pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989/11 "2018-08-03T14:03:10Z")

</div>

Hi,

Yep also on screen.

Anyway I have now fixed the issue [canvas1.pdf](https://root-forum.cern.ch/uploads/default/original/3X/7/8/78f800ea174d094106d6f52a3d9025d6ec2ad7e1.pdf) (31.0 KB)

Actually I have rootlogon.C macro in my home dir. And there I am setting up some default style. I didn’t realize it before. I removed that macro and I got the nice plot.

Thanks for the help

Babar
