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

13 Aug '18, 21:09

Gel%C3%B6scht's gravatar image

Gelöscht
(ausgesetzt)

Die Antwort ist: Ja, Du machst einen Fehler, weil Du die ganzen schönen Optionen an `table` gibts, nicht aber an `\addplot`. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture}[baseline]% \pgfplotstableread{% x y1 y2 0 0.8 1 0.1 1.7 2 0.2 2.4 2 0.3 5 4 0.4 0 1 0.5 -1 6 0.6 0 7 }\mytable% \begin{axis}[% xlabel={xlabel},% ylabel={ylabel},% ]% % HIER FUNKTIONIERT ALLES PRIMA: \addplot+ [x=x,y=y1, smooth, no marks, solid, line join = round, ] coordinates {(0,0.8) (0.1,1.7) (0.2,2.4) (0.3,5) (0.4,0) (0.5,-1) (0.6,0)}; % HIER WERDEN DIE OPTIONEN IN TABLE IGNORIERT ABER ALLES KLAPPT WENN MAN SIE, WIE OBEN AUCH, AND ADDPLOT IGNORIERT: GIBT: \addplot+ [ smooth, no marks, dashed, line join=round] table [x=x,y=y2] {\mytable}; \end{axis} \end{tikzpicture} \end{document} [![alt text][1]][1] [1]: https://texwelt.de/wissen/upfiles/Screen_Shot_2018-08-13_at_11.41.40_AM.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

13 Aug '18, 21:04

Gel%C3%B6scht's gravatar image

Gelöscht
(ausgesetzt)

Die Antwort ist: Ja, Du machst einen Fehler, weil Du die ganzen schönen Optionen an `table` gibts, nicht aber an `\addplot`. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture}[baseline]% \pgfplotstableread{% x y1 y2 0 0.8 1 0.1 1.7 2 0.2 2.4 2 0.3 5 4 0.4 0 1 0.5 -1 6 0.6 0 7 }\mytable% \begin{axis}[% xlabel={xlabel},% ylabel={ylabel},% ]% % HIER FUNKTIONIERT ALLES PRIMA: \addplot+ [x=x,y=y1, smooth, no marks, solid, line join = round, ] coordinates {(0,0.8) (0.1,1.7) (0.2,2.4) (0.3,5) (0.4,0) (0.5,-1) (0.6,0)}; % HIER WERDEN DIE OPTIONEN IN ADDPLOT IGNORIERT: \addplot+ [ smooth, no marks, dashed, line join=round] table [x=x,y=y2] {\mytable}; \end{axis} \end{tikzpicture} \end{document} [![alt text][1]][1] [1]: https://texwelt.de/wissen/upfiles/Screen_Shot_2018-08-13_at_11.41.40_AM.png