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

24 Apr '14, 17:22

stefan's gravatar image

stefan
18.4k163148

Formatierung eines ternaryaxis-Diagrammtyps

Ich bin gerade dabei ein Shapiro-Diagramm zu erstellen und sehe in der pgfplots-Doku mittlerweile den Wald vor lauter Bäumen nicht. \documentclass{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{ternary} \pgfplotsset{width=7cm, compat=newest} \begin{filecontents*}{ternary_data.txt} A_H2 A_Air A_Steam B_H2 B_Air B_Steam 0.13 0.87 0 0.7 0.3 0 0.13 0.87 0 0.65 0.3 0.05 0.13 0.87 0 0.6 0.31 0.09 0.13 0.87 0 0.55 0.32 0.13 0.13 0.87 0 0.5 0.33 0.17 0.13 0.87 0 0.45 0.34 0.21 0.13 0.87 0 0.4 0.35 0.25 0.13 0.87 0 0.35 0.37 0.28 0.13 0.87 0 0.3 0.38 0.32 0.13 0.87 0 0.25 0.42 0.33 0.13 0.87 0 0.2 0.47 0.33 0.13 0.87 0 0.15 0.75 0.1 0.13 0.87 0 0.14 0.8 0.06 0.13 0.87 0 0.13 0.85 0.02 \end{filecontents*} \begin{document} \begin{tikzpicture} \begin{ternaryaxis}[ title=Shapiro Diagramm, xlabel=Wasserdampf, ylabel=Luft, zlabel=Wasserstoff, label style={sloped}, minor tick num=3, grid=both, axis on top ] \addplot3[ point meta=rand, tieline={tieline style={contour prepared}}, fill=red!80, ] table [x=A_Steam, y=A_Air, z=A_H2]{ternary_data.txt}; \end{ternaryaxis} \end{tikzpicture} \end{document} 1. Wie erreiche ich eine Nummerierung der Achsen in 10er-Schritten? 2. Kann ich eventuell die Achsen farbig gestalten (und eventuell auch die entsprechenden Linien im Grid: z.B. Wasserstoff = dunkelblau, Luft = grün, Wasserdampf = hellblau? ![Shapiro-Diagramm][1] [1]: http://texwelt.de/wissen/upfiles/pgfplots-shapiro-diagram.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

24 Apr '14, 17:01

dzaic's gravatar image

dzaic
631175055

Formatierung eines ternaryaxis-Diagrammtyps

Ich bin gerade dabei ein Shapiro-Diagramm zu erstellen und sehe in der pgfplots-Doku mittlerweile den Wald vor lauter Bäumen nicht. \documentclass{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{ternary} \pgfplotsset{width=7cm, compat=newest} \begin{filecontents*}{ternary_data.txt} A_H2 A_Air A_Steam B_H2 B_Air B_Steam 0.13 0.87 0 0.7 0.3 0 0.13 0.87 0 0.65 0.3 0.05 0.13 0.87 0 0.6 0.31 0.09 0.13 0.87 0 0.55 0.32 0.13 0.13 0.87 0 0.5 0.33 0.17 0.13 0.87 0 0.45 0.34 0.21 0.13 0.87 0 0.4 0.35 0.25 0.13 0.87 0 0.35 0.37 0.28 0.13 0.87 0 0.3 0.38 0.32 0.13 0.87 0 0.25 0.42 0.33 0.13 0.87 0 0.2 0.47 0.33 0.13 0.87 0 0.15 0.75 0.1 0.13 0.87 0 0.14 0.8 0.06 0.13 0.87 0 0.13 0.85 0.02 \end{filecontents*} \begin{document} \begin{tikzpicture} \begin{ternaryaxis}[ title=Shapiro Diagramm, xlabel=Wasserdampf, ylabel=Luft, zlabel=Wasserstoff, label style={sloped}, minor tick num=3, grid=both, axis on top ] \addplot3[ point meta=rand, tieline={tieline style={contour prepared}}, fill=red!80, ] table [x=A_Steam, y=A_Air, z=A_H2]{ternary_data.txt}; \end{ternaryaxis} \end{tikzpicture} \end{document} 1. Wie erreiche ich eine Nummerierung der Achsen in 10er-Schritten? 2. Kann ich eventuell die Achsen farbig gestalten (und eventuell auch die entsprechenden Linien im Grid: z.B. Wasserstoff = dunkelblau, Luft = grün, Wasserdampf = hellblau?