Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

17 Jun '14, 17:06

cis's gravatar image

cis
9.6k104461491

Wie plotte ich diese einfache eine lineare Funktion?

Hallo, ich möchte eine einfache lineare Funktion Plotten, doch ich schaffe es nicht. Die Funktion sol die x-Achse nicht treffen. Leider kann ich versuchen, was ich will. Woran liegt das? Es soll ungefähr so aussehen: ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/Bildschirmfoto_2014-06-17_um_10.15.06.png So ist meins: \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture}[ scale=1 ] \begin{axis}[ axis y line = left, axis x line = bottom, xtick = \empty, ytick = \empty, samples = 160, domain = 0:5, xmax = 6, ymax = 5, xlabel style={at={(rel axis cs:1,0)}}, xlabel=$M$, ylabel style={at={(rel axis cs:0,1)},rotate=-90}, ylabel=$n$, extra y ticks = {3}, extra y tick labels = {$n_0$} ] \addplot[color=black] {-0.5*x+3}; \end{axis} \end{tikzpicture} \end{document}
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

17 Jun '14, 10:23

Patrick1990's gravatar image

Patrick1990
1144711

Wie plotte ich diese einfache Funktion?

Hallo, ich möchte eine einfache lineare Funktion Plotten, doch ich schaffe es nicht. Die Funktion sol die x-Achse nicht treffen. Leider kann ich versuchen, was ich will. Woran liegt das? Es soll ungefähr so aussehen: ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/Bildschirmfoto_2014-06-17_um_10.15.06.png So ist meins: \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture}[ scale=1 ] \begin{axis}[ axis y line = left, axis x line = bottom, xtick = \empty, ytick = \empty, samples = 160, domain = 0:5, xmax = 6, ymax = 5, xlabel style={at={(rel axis cs:1,0)}}, xlabel=$M$, ylabel style={at={(rel axis cs:0,1)},rotate=-90}, ylabel=$n$, extra y ticks = {3}, extra y tick labels = {$n_0$} ] \addplot[color=black] {-0.5*x+3}; \end{axis} \end{tikzpicture} \end{document}