三元图的反转轴

三元图的反转轴

是否可以反转三元图中的轴?该命令x dir=reverse似乎不起作用:

这是一个最小的工作示例:无论是否使用此选项,结果都是相同的。

\documentclass{standalone}
\usepackage{pgfplots} 
\usepgfplotslibrary{ternary}
\pgfplotsset{compat=newest}

\begin{document}

\begin{tikzpicture}
\begin{ternaryaxis}[%
  x dir = reverse % -> no effect ?
]%

\addplot3 coordinates {
(0.85,0.15,0.00)
(0.82,0.13,0.05)
(0.73,0.14,0.13)
(0.82,0.06,0.13)
(0.84,0.00,0.16)
};
\end{ternaryaxis}
\end{tikzpicture}

\end{document}

答案1

我不确定这是否太有意义,但你总是可以贴上一些幻想的标签。

\documentclass{standalone}
\usepackage{pgfplots} 
\usepgfplotslibrary{ternary}
\pgfplotsset{compat=newest}

\begin{document}

\begin{tikzpicture}
\begin{ternaryaxis}[%
x tick label style={opacity=0},clip=false
]%

\addplot3 coordinates {
(0.85,0.15,0.00)
(0.82,0.13,0.05)
(0.73,0.14,0.13)
(0.82,0.06,0.13)
(0.84,0.00,0.16)
};
\pgfplotsinvokeforeach{0,20,...,100}
{\node[anchor=south west] at (axis cs:{1-#1/100},0,{#1/100}) {#1};}
\end{ternaryaxis}
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容