# Save TMVA plot in png

**URL:** <https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043>\
**Category:** TMVA\
**Created:** [October 14, 2016, 6:45am UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043 "2016-10-14T06:45:10Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [October 21, 2016, 1:07pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/21 "2016-10-21T13:07:50Z")

</div>

Hi ferhue,  
it does not work either.  
Regards

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [October 21, 2016, 1:40pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/22 "2016-10-21T13:40:08Z")

</div>

The last idea I can think of is to call

```auto
cout << TMVA::gConfig().fVariablePlotting.fUsePaperStyle << endl;
```

AFTER opening the GUI but before pressing the export button.

And maybe post your version of tmvaglob.cxx.

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [December 5, 2016, 10:43am UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/23 "2016-12-05T10:43:29Z")

</div>

Dear Ferhue,  
can you please tell me where I can find the tmvaglob.cxx file?  
I’m using the ROOT TMVA v6.06 and I can’t find it [1].  
Regards

[1]  
[]$ l /cvmfs/cms.cern.ch/slc6\_amd64\_gcc530/lcg/root/6.06.00-ikhhed4/tutorials/tmva/  
total 188K  
-rw-r–r-- 1 cvmfs 1.9K May 31 2016 tmva\_logo.gif  
-rw-r–r-- 1 cvmfs 242 May 31 2016 sigmoid-small.png  
-rw-r–r-- 1 cvmfs 1.1K May 31 2016 makefile  
-rw-r–r-- 1 cvmfs 183 May 31 2016 line-small.png  
-rw-r–r-- 1 cvmfs 60K May 31 2016 createData.C  
-rw-r–r-- 1 cvmfs 7.0K May 31 2016 TMVARegressionApplication.C  
-rw-r–r-- 1 cvmfs 14K May 31 2016 TMVARegression.C  
-rw-r–r-- 1 cvmfs 17K May 31 2016 TMVAMultipleBackgroundExample.C  
-rw-r–r-- 1 cvmfs 6.5K May 31 2016 TMVAMulticlassApplication.C  
-rw-r–r-- 1 cvmfs 6.3K May 31 2016 TMVAMulticlass.C  
-rw-r–r-- 1 cvmfs 4.0K May 31 2016 TMVAGAexample2.C  
-rw-r–r-- 1 cvmfs 6.2K May 31 2016 TMVAGAexample.C  
-rw-r–r-- 1 cvmfs 5.4K May 31 2016 TMVAClassificationCategoryApplication.C  
-rw-r–r-- 1 cvmfs 7.7K May 31 2016 TMVAClassificationCategory.C  
-rw-r–r-- 1 cvmfs 21K May 31 2016 TMVAClassificationApplication.C  
-rw-r–r-- 1 cvmfs 28K May 31 2016 TMVAClassification.C  
drwxr-xr-x 2 cvmfs 4 Jun 1 2016 data

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 5, 2016, 12:49pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/24 "2016-12-05T12:49:20Z")

</div>

`locate tmvaglob.cxx
/opt/root/root_src/tmva/tmvagui/src/tmvaglob.cxx
`

If you edit the file, you need to call “make” again.

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [December 5, 2016, 1:00pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/25 "2016-12-05T13:00:09Z")

</div>

Dear ferhue,

“locate” returns nothing as well as “find”, so I do not see where this file is.  
I did not download the TMVA package but I’m using the root TMVA.

Regards

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 5, 2016, 1:36pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043/26 "2016-12-05T13:36:32Z")

</div>

Did you install the ROOT from source or downloaded as a binary?

If you want to edit tmvaglob.cxx, you need to build from source.

[Previous page](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043.md?page=1)
