TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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]
        \addplot [mark=none] {((1-x)/(5.5*x))^1/6};
    \end{axis}
\end{tikzpicture}
\end{document}

enter image description here

share|improve this question
2  
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, – Dr. Manuel Kuehner Feb 20 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 at 21:36
    
@Guho See my update. – Dr. Manuel Kuehner Feb 20 at 21:44
up vote 5 down vote accepted

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).

enter image description here

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]
        \addplot [mark=none] {((1-x)/(5.5*x))^1/6};
    \end{axis}
\end{tikzpicture}
\end{document}

enter image description here

Alternative Solution by User Guho (Not Tested by Me)

@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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.