# Glitch in TMVAMultiClass canvas drawing

**URL:** <https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032>\
**Category:** TMVA\
**Created:** [February 18, 2020, 3:36pm UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032 "2020-02-18T15:36:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![avenkate](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Post date:** [February 18, 2020, 3:36pm UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/1 "2020-02-18T15:36:52Z")

</div>

Dear experts,

I am trying TMVAMultiClass on my laptop with ROOT 6.17/01. Training goes fine, and when I attempt to use TMVAMultiClassGui for the usual graphical stuff, I notice something weird with the canvases drawn for the classifier output distributions (buttons 4a, 4b only. Others are fine).

When the canvas is first drawn, it looks fine  
[Screenshot 2020-02-18 10.17.16.PDF](https://root-forum.cern.ch/uploads/short-url/xKe5tVEXZxkZ0EfPEkX1A6n7R8n.PDF) (138.7 KB)

But, when I attempt to do any mouse manipulation with the canvas, like resizing the canvas, or even clicking on it, a bunch of components on it disappear  
[Screenshot 2020-02-18 10.27.42.PDF](https://root-forum.cern.ch/uploads/short-url/z4L5kFVJ0x0nCOGD3ZOuppTZWJm.PDF) (139.4 KB)

I don’t see such issues reported elsewhere on the forum. Is it possible that it is a peculiarity with my ROOT build? ( I should mention that I see the same issue with ROOT 6.16.00 on my university cluster)

I am unsure of how to provide a “test script” for this problem. The “TMVA.root” file generated by the training is 118 MB in size, so I doubt I can attach it to this post. If any of the experts reading this have access to CERN lxplus, I have stored the relevant file at /afs/cern.ch/user/a/avenkate/public/forTMVA/TMVA\_Multiclass.root

I would be happy to provide any additional info from my side.

Cheers,  
Arvind.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 21, 2020, 2:25pm UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/2 "2020-02-21T14:25:47Z")

</div>

Hi,  
I can access yout output file (TMVA\_Multiclass.root), but the file does not contained the ouput score histograms, needed for the 4a and 4b plots.  
Running the GUI I get this message  
`--- Found directory for method: BDTG::BDTG: mva distribution not available (this is normal for Cut classifier)`

Lorenzo

---

<div class="post-metadata">

**Author:** ![avenkate](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Post date:** [February 24, 2020, 7:04pm UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/3 "2020-02-24T19:04:20Z")

</div>

Hi Lorenzo,

Thanks for taking a look.

That is very weird. I just ran the GUI on the exact same file, and buttons 4a and 4b don’t give me that error. Are you running TMVAGui by any chance? The correct GUI to use is TMVAMultiClassGui (TMVA::TMVAMultiClassGui(“TMVA\_Multiclass.root”) for this instance.

When I run TMVAGui on the file, I see the same error that you do.

Arvind.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 25, 2020, 8:59am UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/4 "2020-02-25T08:59:43Z")

</div>

Hi,

Sorry, you are right. I can reproduce now the problem using TMVAMultiClassGui and we are going to investigating it.  
Lorenzo

---

<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:** [February 25, 2020, 9:21am UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/5 "2020-02-25T09:21:57Z")

</div>

I am looking at it.  
Thanks for reporting

---

<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:** [February 25, 2020, 11:25am UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/6 "2020-02-25T11:25:18Z")

</div>

The fix has been found. A PR will come soon.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 25, 2020, 11:41am UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032/7 "2020-02-25T11:41:12Z")

</div>

See [https://github.com/root-project/root/pull/5055](https://github.com/root-project/root/pull/5055)
