Subject: | Ticks mismatch in ternary plot |
Date: | Sat, 03 Aug 2013 16:50:36 +0200 |
To: | bug-LaTeX-TikZ [...] rt.cpan.org |
From: | Lars Klemet Jakobsson <lars.jakobsson [...] material.ntnu.no> |
Hi,
I am using TikZ for ternary plots and have problems with a mismatch of
ticks after changing the axis range. An example is given below where the
ymax is set to 0.8 but actually seem to get a maxmum value of 80/0.99 in
the plot, but is only the ticks that are in the wrong location. The
plotted values are in the correct location as demonstrated by the x in
the minimal working example. This mismatch is value dependent and does
for example not happen if ymax is set to 0.6.
Minimal working example is given below.
Best regards
Lars Klemet Jakobsson
\documentclass[10pt]{scrartcl}
\usepackage[utf8x]{inputenc}
\pagestyle{empty}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{ternary}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\begin{tikzpicture}
\begin{ternaryaxis}[
ternary limits relative=false,
width=7.5cm,
height=7.5cm,
ymax=0.8,
]
\addplot3[only marks, mark = x]
table{
0 0.8 0
};
\end{ternaryaxis}
\end{tikzpicture}
\end{document}