The way you've written $q(x)$ doesn't make sense because in addition to $x$ there's a free variable $i$ that you didn't introduce. I think you probably mean $q(x)=q(x-1)\cdot1.5\text{ with } q(1)=1$, which is a recurrence relation for $q$ that can be solved in the closed form $q(x)=1.5^{x-1}$.
If so, you have two functions, $p(x)=x^2$ and $q(x)=1.5^{x-1}$. Note that in one the independent variable $x$ is in the base and in the other it's in the exponent. Taking the logarithms of both functions yields $\log p(x)=2\log x$ and $\log q(x)=(x-1)\log1.5$. The first is a linear relationship between $\log p(x)$ and $\log x$, the second a linear relationship between $\log q(x)$ and $x$. That's why in the one case you need to plot $\log x$ and in the other $x$.