Seite 1 von 1

Funktion plotten mit pgfplots

Verfasst: Do 18. Apr 2013, 20:29
von dehein2
Hallo,
ich möchte eine eigentlich recht einfache Funktion y = (2x)^(2/3) plotten und dachte es ginge so:
\documentclass{scrreprt}
\usepackage{graphicx}
\usepackage{pgfplots}


\begin{document}
 
\begin{figure}[h]
\begin{tikzpicture}
\begin{axis}[
xmin=0.5, 
xmax=2, 
ymin=0, 
ymax=2,
xlabel=$r_{Einlauf}/d_{Rotor}$,
ylabel=$T_{Duct}/T$, 
height=9cm, 
width=14cm,
legend pos=south east,
 xticklabel style={/pgf/number format/.cd,fixed}
]

\addplot {(2x)^(2/3)};

\end{axis}
\end{tikzpicture}
\caption{Schub mit und ohne Duct abhängig vom Expansionsverhältnis}
\label{plot:t von ainfty}
\end{figure}


\end{document}

aber leider klappt das nicht wegen eines PGF Math Error: Unknown operator x' ....

sin (x) klappt doch aber z.b.. Was mache ich hier falsch? ;)

Vielen Dank nochmal

Verfasst: Do 18. Apr 2013, 21:03
von dehein2
warum funktioniert
\addplot[mark=none, color=red]  plot[samples=500,smooth]{x^2/(1-x^2)};
aber das nicht?????
\addplot[mark=none, color=red]  plot[samples=500,smooth]{2x};
!?!?!?!

Geeignete Lektüre

Verfasst: Do 18. Apr 2013, 21:26
von localghost
Lies mal die Anleitung.
\addplot {(2*x)^(2/3)};

Thorsten

Verfasst: Do 18. Apr 2013, 21:37
von dehein2
ups, danke ;)


Nun bekomme ich noch einen kleinen Fehler (obwohl alles gut aussieht)

!Latex Error: Command \_ unanvailable in encoding T1

kann ich da noch was machen?

Verfasst: Do 18. Apr 2013, 21:39
von dehein2
sorry, war ein tippfehler. schon gefunden

Danke nochmal