# Axis rescale in FFT.C

**URL:** <https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814>\
**Category:** ROOT\
**Created:** [March 19, 2013, 5:26pm UTC](https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814 "2013-03-19T17:26:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crgg](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/e79b87/32.png) [@crgg](https://root-forum.cern.ch/u/crgg)\
**Post date:** [March 19, 2013, 5:26pm UTC](https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814/1 "2013-03-19T17:26:48Z")

</div>

Hello,  
I was playing with the FFT.C and tried to extract the frequency of the input fuction.  
The totorial says:

> [@](#):
>
> //NOTE: for “real” frequencies you have to divide the x-axes range with the range of your function  
> //(in this case 4\*Pi); y-axes has to be rescaled by a factor of 1/SQRT(n) to be right: this is not done automatically!

Unfortunatelly I couldn’t figure out how this is done.  
Any advice?  
Regards,  
Christian

---

<div class="post-metadata">

**Author:** ![jtnattress](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@jtnattress](https://root-forum.cern.ch/u/jtnattress)\
**Post date:** [September 14, 2016, 8:26pm UTC](https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814/2 "2016-09-14T20:26:41Z")

</div>

I am having the same issue. Was this ever solved?

I found this thread [Rescaling the x-axis of FFT transformed histogram](https://root-forum.cern.ch/t/rescaling-the-x-axis-of-fft-transformed-histogram/17761/1) but I am still having some issues.

---

<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:** [September 15, 2016, 8:46am UTC](https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814/3 "2016-09-15T08:46:39Z")

</div>

> [@](#):
>
> y-axes has to be rescaled by a factor of 1/SQRT(n)

I guess you can use Scale on hm …

---

<div class="post-metadata">

**Author:** ![jfcaron](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jfcaron](https://root-forum.cern.ch/u/jfcaron)\
**Post date:** [September 15, 2016, 5:21pm UTC](https://root-forum.cern.ch/t/axis-rescale-in-fft-c/15814/4 "2016-09-15T17:21:19Z")

</div>

The question might be more related to the problem of rescaling the X-axis (as discussed e.g. here [Feature Request: Transform TAxes](https://root-forum.cern.ch/t/feature-request-transform-taxes/16327/1))

Jean-François
