Sorry for the confusing title.
The MWE
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[scale=0.75]
\begin{axis}[ylabel=Y-Axis, xlabel=X-Axis, xmin=0, xmax=10, ymin=0, ymax=12, clip=false, yticklabel pos=right, ylabel near ticks]
\pgfplotsinvokeforeach{0.01,0.1,0.9}{
\addplot[mark=none, domain=0.0:10, thick] {-ln(#1/5^x)/ln(5)} node [pos=0,left] {$c_x=#1$};
}
\end{axis}
\end{tikzpicture}
\end{document}
produces the following graph
This is just what I want... except that the c_x=0.01 line is extending outside of the box!
Setting clip=false
is necessary to get the c_x=
labels to show up, but I think that it's producing this side-effect.
How can I have my cake and eat it too? That is, how can I have my automagically-positioned labels on the left and my graph nicely contained on the right?
clip=true
, and usepos=0.5, sloped, above
option to the node.