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

13 Aug '18, 19:55

saputello's gravatar image

saputello
11.1k174365

pgfplots: Unterschied \addplot [...] coordinates bzw. table???

Hallo, ich Ich habe bei mrunix eine Frage gestellt, bin mir aber unsicher, welches das aktivere Forum ist. Daher hier zusätzlich der Post, natürlich auch dann später mit der Verlinkung hoffentlich erfolgreicher Antworten. [https://www.mrunix.de/forums/showthread.php?77374-pgfplots-Unterschied-addplot-coordinates-bzw-table][1] [1]: https://www.mrunix.de/forums/showthread.php?77374-pgfplots-Unterschied-addplot-coordinates-bzw-table Ich versuche gerade zu verstehen, wo der Unterschied bei pgfplots `pgfplots` ist bei der Dateneingabe zwischen: \addplot [Optionen] coordinates {Punkte}; und \addplot table [Optionen] {\mytable}; Bei der ersten Variante kann ich Marker, Line style etc. in den **Optionen** setzen, bei der zweiten Variante bleibt dies wirkungslos. Was mache ich für einen Fehler??? \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 % 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 % HIER WERDEN DIE OPTIONEN IN ADDPLOT IGNORIERT: \addplot+ table [x=x,y=y2, smooth, no marks, dashed, line join=round, ] {\mytable}; \end{axis} \end{tikzpicture} \end{document}
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

13 Aug '18, 19:07

RungeZipperer's gravatar image

RungeZipperer
116147

pgfplots: Unterschied \addplot [...] coordinates bzw. table???

Hallo, ich habe bei mrunix eine Frage gestellt, bin mir aber unsicher, welches das aktivere Forum ist. Daher hier zusätzlich der Post, natürlich auch dann später mit der Verlinkung hoffentlich erfolgreicher Antworten. [https://www.mrunix.de/forums/showthread.php?77374-pgfplots-Unterschied-addplot-coordinates-bzw-table][1] [1]: https://www.mrunix.de/forums/showthread.php?77374-pgfplots-Unterschied-addplot-coordinates-bzw-table Ich versuche gerade zu verstehen, wo der Unterschied bei pgfplots ist bei der Dateneingabe zwischen: \addplot [Optionen] coordinates {Punkte}; und \addplot table [Optionen] {\mytable}; Bei der ersten Variante kann ich Marker, Line style etc. in den **Optionen** setzen, bei der zweiten Variante bleibt dies wirkungslos. Was mache ich für einen Fehler??? \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+ table [x=x,y=y2, smooth, no marks, dashed, line join=round, ] {\mytable}; \end{axis} \end{tikzpicture} \end{document}