# Get local maximum when using THStack

**URL:** <https://root-forum.cern.ch/t/get-local-maximum-when-using-thstack/27361>\
**Category:** ROOT\
**Tags:** graphics\
**Created:** [December 22, 2017, 1:58am UTC](https://root-forum.cern.ch/t/get-local-maximum-when-using-thstack/27361 "2017-12-22T01:58:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![amvargash](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@amvargash](https://root-forum.cern.ch/u/amvargash)\
**Post date:** [December 22, 2017, 2:01pm UTC](https://root-forum.cern.ch/t/get-local-maximum-when-using-thstack/27361/5 "2017-12-22T14:01:31Z")

</div>

@Wile_E_Coyote, I tried the same approach with a `TMultiGraph` Object without success (using `GetHistogram(), SetRangeUser, and then GetMaximum`). I saw [this post](https://root-forum.cern.ch/t/tmultigraph-getmax-min-imum/26127), but the solution returns a global rather than a local maximum. Do you know how to achieve the same goal with `TMultiGraph`?

---

_[View the full topic](https://root-forum.cern.ch/t/get-local-maximum-when-using-thstack/27361)._
