Generally, say I have a function $f(x)$.
I would like to transform $f(x)$ to $\hat f(x)$ such that $\hat f(x)$ when plotted on a semi-log plot (x-axis log, function axis linear) has the same shape as $f(x)$ on a linear plot.
For my specific problem, I would like to transform $f(x, a) = \tanh (x+a)$ (where $a$ is some horizontal transformation) such that, regardless of $a$, $\hat f(x, a)$, "looks" like $f(x, a)$.
The issue I ran into was that you had to take the log of $x$ and $a$ separately.
So if $f(x) = \tanh(x + a)$ then $\hat f(x) = \tanh(\log(x) + \log(a))$.
If you want to stretch the the function using a parameter $s$, then you must multiply the entire input:
$$ \hat f(x) = \tanh[s(\log(x) + \log(a))]$$
Python source code: