# Scale main TAxis with a user defined function

**URL:** <https://root-forum.cern.ch/t/scale-main-taxis-with-a-user-defined-function/59279>\
**Category:** Newbie\
**Created:** [May 9, 2024, 5:11pm UTC](https://root-forum.cern.ch/t/scale-main-taxis-with-a-user-defined-function/59279 "2024-05-09T17:11:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonardoPalombini](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/leonardopalombini/32/33141_2.png) [@LeonardoPalombini](https://root-forum.cern.ch/u/LeonardoPalombini)\
**Post date:** [May 9, 2024, 5:11pm UTC](https://root-forum.cern.ch/t/scale-main-taxis-with-a-user-defined-function/59279/1 "2024-05-09T17:11:08Z")

</div>

Hello ROOTers  
I’m wondering whether ther is a way to scale the main X/Y axis in a pad using a user defined function (the same way it happens using SetLogX/Y, so with all data and TF1s scaling as well).

Thank you  
Leonardo

---

<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:** [May 9, 2024, 5:21pm UTC](https://root-forum.cern.ch/t/scale-main-taxis-with-a-user-defined-function/59279/2 "2024-05-09T17:21:18Z")

</div>

Hi,  
This is not possible directly in ROOT, you would need to do the scaling yourself.

Lorenzo
