# SetOptStat for TPaveStats

**URL:** <https://root-forum.cern.ch/t/setoptstat-for-tpavestats/62251>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [November 15, 2024, 1:01pm UTC](https://root-forum.cern.ch/t/setoptstat-for-tpavestats/62251 "2024-11-15T13:01:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [November 15, 2024, 1:01pm UTC](https://root-forum.cern.ch/t/setoptstat-for-tpavestats/62251/1 "2024-11-15T13:01:29Z")

</div>

Hi,

being an avid fan of [`TStyle::SetOptStat(Option_t * stat)`](https://root.cern.ch/doc/master/classTStyle.html#a906e5f9060357a95f893701b3bed57a2) (not to be confused with `TStyle::SetOptStat(Int_t mode = 1)`), I noticed that for the `TPaveStats` objects only a [`TPaveStats::SetOptStat(Int_t stat = 1)`](https://root.cern.ch/doc/master/classTPaveStats.html#a3866ecf14ba70a542a5925884a06a516) member function exists. Any chance we can get a similar function that takes `Option_t` as an input for `TPaveStats` in the future releases of ROOT?

Thanks!

---

<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:** [November 15, 2024, 1:48pm UTC](https://root-forum.cern.ch/t/setoptstat-for-tpavestats/62251/2 "2024-11-15T13:48:39Z")

</div>

Thank you for your suggestion. I suppose that, initially, setting the stats fields using letters was implemented only at the style level, as it serves as a high-level setting function. In contrast, the implementation for `TPaveStats` is specific to lower-level primitives, which are presumably used less frequently. That said, I agree that, in principle, there is no reason not to have this functionality available at the lower level as well.
