my xticks disappear for some plots even though I explicitly ask for them. Here is my MWE. The function goes to -infinity at the right border of the interval.
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[domain=0:1]
\begin{semilogyaxis}[xtick={0,0.5,1}]
\addplot[mark=none,samples=300] {x - 1/(4 - 4*x) + 5/4};
\end{semilogyaxis}
\end{tikzpicture}
\end{document}
How do I get them back? A general idea how to deal with the plotting of divergent functions would be great.

xmax=1to make sure that that point is included in your range. Thedomainkeyword only sets the computational range for the\addplotcommand, but not the visible range of the axis. – Jake Jan 22 at 17:13