Disclaimer: There is no bypassing the use of vector calculus.
You likely want to plot some function $h(t)$ with respect to the basis vectors that change scale with parameter $t$. This requires some understanding of vectors and spaces as opposed to equalities which define curves. For example, suppose I wanted to plot $\sin(x)$ between $x+\sqrt{2},x-\sqrt{2}$ in the way I think you mean. Then such a curve would be
$$\frac{1}{\sqrt{2}}(t\vec{e}_1+\sin t \vec{e}_2)$$ where $\vec{e}_1=(1,1),\vec{e}_2=(-1,1)$ where the vector $(a,b)$ is written in terms of the original basis $\vec{e}_x=(1,0),\vec{e}_y=(0,1).$ This would look like:
$$\frac{1}{\sqrt{2}}\left(t-\sin t,t+\sin t\right)$$ in the original basis (plot this in Desmos). Now, ideally they would scale according to some functions $f,g$. Now, let's say we've parametrized the curves defining $f,g$ according to their arc length and call them $p(s),q(s)$. Define $\vec{e}_1=\frac{d}{ds}\frac{p+q}{2},\vec{e}_2=\frac{d^2}{ds^2}\frac{p+q}{2}$ and write your function as $\frac{|p-q|}{|\left(t\vec{e}_1+h(t)\vec{e}_2\right)|}\left(t\vec{e}_1+h(t)\vec{e}_2\right).$ $t$ is a parameter that depends on $s$. If I haven't made any mistakes, that should do it.
Indeed, you don't necessarily need to have $\frac{p+q}{2}$ be the curve defining the axis. In fact, one can have (what everyone else was saying) $\nu p+(1-\nu)q$ for any $|\nu|<1$.