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

08 Apr '15, 15:45

Henri's gravatar image

Henri
15.7k133943

Ein Kinderspiel mit `pgfplots`. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot+[no marks,smooth] {2.3*sin(4.39*x)-(4.8*x^4)+(2.9*x^7)}; \end{axis} \end{tikzpicture} \end{document} > ![alt text][1] Um das gleiche mit TikZ hinzubekommen muss man etwas tricksen, da man sonst sofort mit `Dimension too large` bestraft wird. \documentclass{article} \usepackage{tikz} \usepgflibrary{fpu} \begin{document} \begin{tikzpicture}[x=.6cm,y=.000008cm,/pgf/fpu,/pgf/fpu/output format=fixed] \draw (-6,-2.5e5) rectangle (6,2.5e5); \node[above right] at (-6,2.5e5) {$\cdot 10^5$}; \foreach \x in {-6,-4,...,6} { \node[below] at (\x,-2.5e5) {$\x$}; \draw[help lines] (\x,-2.5e5) -- ++(0,4pt); } \foreach \y in {-2,-1,...,2} { \node[left] at (-6,\y e5) {$\y$}; \draw[help lines] (-6,\y e5) -- ++(4pt,0); } \draw[blue] plot[smooth,domain=-5:5] (\x,{2.3*sin(deg(4.39*\x))-(4.8*(\x)^4)+(2.9*(\x)^7)}); \end{tikzpicture} \end{document} > ![alt text][2] [1]: http://texwelt.de/wissen/upfiles/u_177.pnghttp://texwelt.de/wissen/upfiles/u_177.png [2]: http://texwelt.de/wissen/upfiles/t_18.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

08 Apr '15, 08:42

Henri's gravatar image

Henri
15.7k133943

Ein Kinderspiel mit `pgfplots`. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot+[no marks,smooth] {2.3*sin(4.39*x)-(4.8*x^4)+(2.9*x^7)}; \end{axis} \end{tikzpicture} \end{document} > ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/u_177.png