Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2
ticks und deren Beschriftungen gefärbt

25 Apr '14, 11:40

esdd's gravatar image

esdd
17.8k304257

Die Nummerierung in 10er Schritten bekommst Du mit xtick={0,.1,...,1.0} xtick={0,.1,.2,...,1}, Die Achse und deren Label Beschriftung kannst Du mit folgendem in einer vorher definierten Farbe xcolor xtick style=xcolor, xlabel style=xcolor, x axis line style={xcolor,very thick}, xlabel style={xcolor} style=xcolor, xticklabel style=xcolor, ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/shapiro.png Code: \documentclass[margin=5mm]{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{ternary} \pgfplotsset{width=7cm, compat=newest} \colorlet{xcolor}{blue!50} \colorlet{xcolor}{blue!60!white} \colorlet{ycolor}{blue!50!black} \colorlet{zcolor}{green} \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}[] \end{ternaryaxis} \begin{ternaryaxis}[ title=Shapiro Diagramm, xlabel=Wasserdampf, ylabel=Luft, zlabel=Wasserstoff, label style={sloped}, minor tick num=1, num=3, grid=both, axis on top, xtick={0,.1,...,1.0}, % xtick={0,.1,.2,...,1}, xtick style=xcolor, xlabel style=xcolor, x axis line style={xcolor,very thick}, xlabel style={xcolor}, ytick={0,.1,...,1.0}, style=xcolor, xticklabel style=xcolor, % ytick={0,.1,.2,...,1}, ytick style=ycolor, ylabel style=ycolor, y axis line style={ycolor,very thick}, ylabel style={ycolor}, ztick={0,.1,...,1.0}, style=ycolor, yticklabel style=ycolor, % ztick={0,.1,.2,...,1}, ztick style=zcolor, zlabel style=zcolor, z axis line style={zcolor,very thick}, zlabel style={zcolor}, style=zcolor, zticklabel style=zcolor, % axis line style=very thick ] \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} Die Gitterlinie unterschiedlich einzufärben dürfte schwierig sein und macht auch eigentlich keinen Sinn, Gitterlinien würde ich nicht färben, weil jede Gitterlinie zwei Achsen verbindet und damit nicht klar ist, welche Farbe sie bekommen soll. verbindet. [1]: http://texwelt.de/wissen/upfiles/shapiro_1.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

24 Apr '14, 22:33

esdd's gravatar image

esdd
17.8k304257

Die Nummerierung in 10er Schritten bekommst Du mit xtick={0,.1,...,1.0} Die Achse und deren Label kannst Du mit folgendem in einer vorher definierten Farbe xcolor x axis line style={xcolor,very thick}, xlabel style={xcolor} ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/shapiro.png Code: \documentclass[margin=5mm]{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{ternary} \pgfplotsset{width=7cm, compat=newest} \colorlet{xcolor}{blue!50} \colorlet{ycolor}{blue!50!black} \colorlet{zcolor}{green} \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}[] \end{ternaryaxis} \begin{ternaryaxis}[ title=Shapiro Diagramm, xlabel=Wasserdampf, ylabel=Luft, zlabel=Wasserstoff, label style={sloped}, minor tick num=1, grid=both, axis on top, xtick={0,.1,...,1.0}, x axis line style={xcolor,very thick}, xlabel style={xcolor}, ytick={0,.1,...,1.0}, y axis line style={ycolor,very thick}, ylabel style={ycolor}, ztick={0,.1,...,1.0}, z axis line style={zcolor,very thick}, zlabel style={zcolor}, ] \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} Die Gitterlinie unterschiedlich einzufärben dürfte schwierig sein und macht auch eigentlich keinen Sinn, weil jede Gitterlinie zwei Achsen verbindet und damit nicht klar ist, welche Farbe sie bekommen soll.