# Legend title disappaer in ROC plot in TMVA

**URL:** <https://root-forum.cern.ch/t/legend-title-disappaer-in-roc-plot-in-tmva/16031>\
**Category:** TMVA\
**Created:** [May 7, 2013, 8:08am UTC](https://root-forum.cern.ch/t/legend-title-disappaer-in-roc-plot-in-tmva/16031 "2013-05-07T08:08:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mradul](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@mradul](https://root-forum.cern.ch/u/mradul)\
**Post date:** [May 7, 2013, 8:08am UTC](https://root-forum.cern.ch/t/legend-title-disappaer-in-roc-plot-in-tmva/16031/1 "2013-05-07T08:08:03Z")

</div>

I am using TMVA from ROOT version 5.34/05. During the testing of many classification methods, whenever the number of methods go larger than 2, the legend title of all the methods in the ROC plot is not displayed. However, when upto two classifiers are used, legend title in roc plot is intact.

How this problem can be tackled.

Mradul

---

<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:** [May 7, 2013, 10:52am UTC](https://root-forum.cern.ch/t/legend-title-disappaer-in-roc-plot-in-tmva/16031/2 "2013-05-07T10:52:01Z")

</div>

Can you save your plot as a .root file or a .C macro and post it here ?

---

<div class="post-metadata">

**Author:** ![mradul](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@mradul](https://root-forum.cern.ch/u/mradul)\
**Post date:** [May 8, 2013, 4:38am UTC](https://root-forum.cern.ch/t/legend-title-disappaer-in-roc-plot-in-tmva/16031/3 "2013-05-08T04:38:36Z")

</div>

Hi…  
The problem is over now. When TMVAClassification.C with various methods are tried, it generates the root file “TMVA.root”. Now suppose, I run the classification again, without removing TMVA.root file, the title of legends do not appear in the ROC plot. However, once TMVA.root file is removed and generated afresh, the problem disappears. This way, I have tested 8 classifiers with legend titles for all the classifiers in the ROC plot.

mradul
