[Tex/LaTex] How to change the x axis position pgfplots

pgfplots

I have trouble to shift the y axis. Is there any command to shift the y axis in the right direction (the first point where graph started) and start the graph exactly from the first point. Thanks.

Is there any

Best Answer

To place the y axis in the right:

\begin{tikzpicture}
\begin{axis}[
  axis x line*=bottom,
  axis y line*=right
]
\addplot {x};
\end{axis}
\end{tikzpicture}

enter image description here

UPDATE

As @Jake explained, you need enlargelimits=false to "shift" the y axis till reach the plot.