# Drawing a TGraphAsymmErrors

**URL:** <https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205>\
**Category:** ROOT\
**Created:** [April 26, 2012, 9:40pm UTC](https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205 "2012-04-26T21:40:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [April 30, 2012, 11:49am UTC](https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205/4 "2012-04-30T11:49:48Z")

</div>

Well, maybe I’d like to ask a strange question.  
Actually, “MyGraph-\>GetXaxis()-\>SetLimits(xmin, xmax);” is just a shortcut for “MyGraph-\>GetHistogram()-\>GetXaxis()-\>SetLimits(xmin, xmax);”.  
However, there is a non-negligible difference between “MyGraph-\>SetM[in|ax]imum(ym[in|ax]);” and “MyGraph-\>GetHistogram()-\>SetM[in|ax]imum(ym[in|ax]);”.  
And that difference exists not only for TGraph related classes but also for TF1, for example (well, maybe for more, but I didn’t trace it that much).  
So, the question is … when should one use which method and why?

---

_[View the full topic](https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205)._
