# Order of calling methods with TMultiGraph

**URL:** <https://root-forum.cern.ch/t/order-of-calling-methods-with-tmultigraph/14724>\
**Category:** ROOT\
**Created:** [August 7, 2012, 7:26pm UTC](https://root-forum.cern.ch/t/order-of-calling-methods-with-tmultigraph/14724 "2012-08-07T19:26:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [August 7, 2012, 8:10pm UTC](https://root-forum.cern.ch/t/order-of-calling-methods-with-tmultigraph/14724/2 "2012-08-07T20:10:12Z")

</div>

I think that …

1. the first “Draw” creates axes (so they do not exist prior to this call)
2. there seems to exist a bug in ROOT related to “SetTitle” … a brutal fix …  
… if you “Draw” your TMultiGraph first, then use:  
total\_graph-\>GetHistogram()-\>SetTitle(“Charge State Probability”);  
… before the first “Draw”, use:  
total\_graph-\>SetTitle(“Charge State Probability”);

---

_[View the full topic](https://root-forum.cern.ch/t/order-of-calling-methods-with-tmultigraph/14724)._
