pgfplots: coordinate has been dropped because it is unbounded

After compiling the code I get: coordinate (0Y0.0e0],4Y0.0e0]) has been dropped because it is unbounded (in y). Here the solution was to specify a domain. I did it, hence I do not understand why I get this message.

\documentclass[border=0.5cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}

\begin{document}
\begin{tikzpicture}
\begin{axis} [
xmin=0,xmax=1,
ymin=0,ymax=1,grid=major,
xlabel={$F_{\textrm{Kleb}}$},ylabel={$y/\delta$}, ylabel style={rotate=-90},
%width=6cm,height=4.5cm,
domain=0:1,samples=50]
\end{axis}
\end{tikzpicture}
\end{document}


• You divide by zero (div/0). This is not a pgfplots problem. You have to restrict the domain to 0.001:1 for example. I'll prepare an answer to show you the effect, Feb 20, 2016 at 21:32
• @Dr.ManuelKuehner: Alternatively you could keep the x domain as is and restrict the y domain to some finite maximum like restrict y to domain=0:1000. The downside is that you'll have to ensure that the value is large enough to ensure the line is connected to the plot border.
– Guho
Feb 20, 2016 at 21:36
• @Guho See my update. Feb 20, 2016 at 21:44

My Solution

For x=0 the y value goes to +inf (positive infinity). This is normal for this kind of hyperbolic functions. Therefore you should use a domain that starts at a value >0 like 0.001. You could easily test this in Excel for example (on my system the comma is the decimal separator).

See bounded and unbounded functions on Wikipedia (Link).

For x=0 the y value for your equation is infinity so you should use a domain that starts with 0.001 (0.001:1) for example.

\documentclass[border=0.5cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}

\begin{document}
\begin{tikzpicture}
\begin{axis} [
xmin=0,xmax=0.01,
ymin=0,ymax=100,grid=major,
xlabel={$F_{\textrm{Kleb}}$},ylabel={$y/\delta$}, ylabel style={rotate=-90},
%width=6cm,height=4.5cm,
domain=0.0001:0.01,samples=1000]