I'm trying to plot a function, but with the x-axis logarithmic. I use PSTricks
and the package pstricks-add
with the algebraic option, to write my function litterally.
My function to be plotted is :
I want to have the X-axis logarithmic, from 10^-1 to 10^2... But I can't figure how to do it...
Here's what I tried...
\psset{xunit=2,yunit=6, algebraic}
\begin{pspicture}[showgrid=false](0,0)(2,1)
\psaxes[xlogBase=10, comma,subticks=5,
arrowscale=1.5]{->}(3,0.8)[Voltage (V),-90][Yield (\%),90]
\psplot[linecolor=red]{0.01}{2}{(x/(1+(1+x^2)^0.5))^2}
\end{pspicture}
That generates this :
What I want to have is this :
Does I have to adapt the function so that it fits the non-logarithmic grid once plotted ? I don't understand the principe of plotting a log function in a non-log grid...
If you could also explain me that it would be great.