Lua backend places markers incorrectly
Brought to you by:
cfeuersaenger,
ludewich
In the latests v1.12 release, we've discovered that the new lua backend still has some bugs left.
E.g. the following code (excuse me for the not-so-minimal working example) produces bad output (only) when the lua backend is used.
% This file was created by matlab2tikz.
%
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\usepackage{grffile}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usepgfplotslibrary{patchplots}
\usepackage{amsmath}
\begin{document}
\definecolor{mycolor1}{rgb}{0.00000,1.00000,1.00000}%
\definecolor{mycolor2}{rgb}{1.00000,0.00000,1.00000}%
\definecolor{mycolor3}{rgb}{1.00000,1.00000,0.00000}%
%
\begin{tikzpicture}
\begin{axis}[%
width=6.027778in,
height=4.754167in,
at={(1.011111in,0.641667in)},
scale only axis,
xmin=0,
xmax=11,
xtick={1,2,3,4,5,6,7,8,9,10},
xticklabels={{6},{8},{10},{12},{14},{17},{19},{21},{23},{25}},
xmajorgrids,
ymin=0,
ymax=140,
ymajorgrids,
axis background/.style={fill=white},
axis x line*=bottom,
axis y line*=left
]
\addplot [color=blue,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
1 10\\
};
\addplot [color=blue,mark size=4.0pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
2 10\\
};
\addplot [color=blue,mark size=5.0pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
3 10\\
};
\addplot [color=blue,mark size=6.0pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
4 10\\
};
\addplot [color=blue,mark size=7.0pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
5 10\\
};
\addplot [color=blue,mark size=8.5pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
6 10\\
};
\addplot [color=blue,mark size=9.5pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
7 10\\
};
\addplot [color=blue,mark size=10.5pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
8 10\\
};
\addplot [color=blue,mark size=11.5pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
9 10\\
};
\addplot [color=blue,mark size=12.5pt,only marks,mark=x,mark options={solid},forget plot]
table[row sep=crcr]{%
10 10\\
};
\addplot [color=red,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
1 20\\
};
\addplot [color=red,mark size=6.9pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
2 20\\
};
\addplot [color=red,mark size=8.6pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
3 20\\
};
\addplot [color=red,mark size=10.4pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
4 20\\
};
\addplot [color=red,mark size=12.1pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
5 20\\
};
\addplot [color=red,mark size=14.7pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
6 20\\
};
\addplot [color=red,mark size=16.4pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
7 20\\
};
\addplot [color=red,mark size=18.1pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
8 20\\
};
\addplot [color=red,mark size=19.8pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
9 20\\
};
\addplot [color=red,mark size=21.6pt,only marks,mark=diamond,mark options={solid},forget plot]
table[row sep=crcr]{%
10 20\\
};
\addplot [color=green,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
1 30\\
};
\addplot [color=green,mark size=4.0pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
2 30\\
};
\addplot [color=green,mark size=5.0pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
3 30\\
};
\addplot [color=green,mark size=6.0pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
4 30\\
};
\addplot [color=green,mark size=7.0pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
5 30\\
};
\addplot [color=green,mark size=8.5pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
6 30\\
};
\addplot [color=green,mark size=9.5pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
7 30\\
};
\addplot [color=green,mark size=10.5pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
8 30\\
};
\addplot [color=green,mark size=11.5pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
9 30\\
};
\addplot [color=green,mark size=12.5pt,only marks,mark=o,mark options={solid},forget plot]
table[row sep=crcr]{%
10 30\\
};
\addplot [color=mycolor1,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
1 40\\
};
\addplot [color=mycolor1,mark size=1.3pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
2 40\\
};
\addplot [color=mycolor1,mark size=1.7pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
3 40\\
};
\addplot [color=mycolor1,mark size=2.0pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
4 40\\
};
\addplot [color=mycolor1,mark size=2.3pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
5 40\\
};
\addplot [color=mycolor1,mark size=2.8pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
6 40\\
};
\addplot [color=mycolor1,mark size=3.2pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
7 40\\
};
\addplot [color=mycolor1,mark size=3.5pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
8 40\\
};
\addplot [color=mycolor1,mark size=3.8pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
9 40\\
};
\addplot [color=mycolor1,mark size=4.2pt,only marks,mark=*,mark options={solid},forget plot]
table[row sep=crcr]{%
10 40\\
};
\addplot [color=mycolor2,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
1 50\\
};
\addplot [color=mycolor2,mark size=4.0pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
2 50\\
};
\addplot [color=mycolor2,mark size=5.0pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
3 50\\
};
\addplot [color=mycolor2,mark size=6.0pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
4 50\\
};
\addplot [color=mycolor2,mark size=7.0pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
5 50\\
};
\addplot [color=mycolor2,mark size=8.5pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
6 50\\
};
\addplot [color=mycolor2,mark size=9.5pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
7 50\\
};
\addplot [color=mycolor2,mark size=10.5pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
8 50\\
};
\addplot [color=mycolor2,mark size=11.5pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
9 50\\
};
\addplot [color=mycolor2,mark size=12.5pt,only marks,mark=+,mark options={solid},forget plot]
table[row sep=crcr]{%
10 50\\
};
\addplot [color=mycolor3,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
1 60\\
};
\addplot [color=mycolor3,mark size=4.0pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
2 60\\
};
\addplot [color=mycolor3,mark size=5.0pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
3 60\\
};
\addplot [color=mycolor3,mark size=6.0pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
4 60\\
};
\addplot [color=mycolor3,mark size=7.0pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
5 60\\
};
\addplot [color=mycolor3,mark size=8.5pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
6 60\\
};
\addplot [color=mycolor3,mark size=9.5pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
7 60\\
};
\addplot [color=mycolor3,mark size=10.5pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
8 60\\
};
\addplot [color=mycolor3,mark size=11.5pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
9 60\\
};
\addplot [color=mycolor3,mark size=12.5pt,only marks,mark=asterisk,mark options={solid},forget plot]
table[row sep=crcr]{%
10 60\\
};
\addplot [color=blue,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
1 70\\
};
\addplot [color=blue,mark size=2.8pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
2 70\\
};
\addplot [color=blue,mark size=3.5pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
3 70\\
};
\addplot [color=blue,mark size=4.2pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
4 70\\
};
\addplot [color=blue,mark size=4.9pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
5 70\\
};
\addplot [color=blue,mark size=6.0pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
6 70\\
};
\addplot [color=blue,mark size=6.7pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
7 70\\
};
\addplot [color=blue,mark size=7.4pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
8 70\\
};
\addplot [color=blue,mark size=8.1pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
9 70\\
};
\addplot [color=blue,mark size=8.8pt,only marks,mark=square,mark options={solid},forget plot]
table[row sep=crcr]{%
10 70\\
};
\addplot [color=mycolor2,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
1 80\\
};
\addplot [color=mycolor2,mark size=2.7pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
2 80\\
};
\addplot [color=mycolor2,mark size=3.3pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
3 80\\
};
\addplot [color=mycolor2,mark size=4.0pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
4 80\\
};
\addplot [color=mycolor2,mark size=4.7pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
5 80\\
};
\addplot [color=mycolor2,mark size=5.7pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
6 80\\
};
\addplot [color=mycolor2,mark size=6.3pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
7 80\\
};
\addplot [color=mycolor2,mark size=7.0pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
8 80\\
};
\addplot [color=mycolor2,mark size=7.7pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
9 80\\
};
\addplot [color=mycolor2,mark size=8.3pt,only marks,mark=triangle,mark options={solid,rotate=180},forget plot]
table[row sep=crcr]{%
10 80\\
};
\addplot [color=black,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
1 90\\
};
\addplot [color=black,mark size=2.7pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
2 90\\
};
\addplot [color=black,mark size=3.3pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
3 90\\
};
\addplot [color=black,mark size=4.0pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
4 90\\
};
\addplot [color=black,mark size=4.7pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
5 90\\
};
\addplot [color=black,mark size=5.7pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
6 90\\
};
\addplot [color=black,mark size=6.3pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
7 90\\
};
\addplot [color=black,mark size=7.0pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
8 90\\
};
\addplot [color=black,mark size=7.7pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
9 90\\
};
\addplot [color=black,mark size=8.3pt,only marks,mark=triangle,mark options={solid},forget plot]
table[row sep=crcr]{%
10 90\\
};
\addplot [color=red,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
1 100\\
};
\addplot [color=red,mark size=2.7pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
2 100\\
};
\addplot [color=red,mark size=3.3pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
3 100\\
};
\addplot [color=red,mark size=4.0pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
4 100\\
};
\addplot [color=red,mark size=4.7pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
5 100\\
};
\addplot [color=red,mark size=5.7pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
6 100\\
};
\addplot [color=red,mark size=6.3pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
7 100\\
};
\addplot [color=red,mark size=7.0pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
8 100\\
};
\addplot [color=red,mark size=7.7pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
9 100\\
};
\addplot [color=red,mark size=8.3pt,only marks,mark=triangle,mark options={solid,rotate=90},forget plot]
table[row sep=crcr]{%
10 100\\
};
\addplot [color=green,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
1 110\\
};
\addplot [color=green,mark size=2.7pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
2 110\\
};
\addplot [color=green,mark size=3.3pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
3 110\\
};
\addplot [color=green,mark size=4.0pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
4 110\\
};
\addplot [color=green,mark size=4.7pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
5 110\\
};
\addplot [color=green,mark size=5.7pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
6 110\\
};
\addplot [color=green,mark size=6.3pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
7 110\\
};
\addplot [color=green,mark size=7.0pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
8 110\\
};
\addplot [color=green,mark size=7.7pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
9 110\\
};
\addplot [color=green,mark size=8.3pt,only marks,mark=triangle,mark options={solid,rotate=270},forget plot]
table[row sep=crcr]{%
10 110\\
};
\addplot [color=mycolor1,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
1 120\\
};
\addplot [color=mycolor1,mark size=4.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
2 120\\
};
\addplot [color=mycolor1,mark size=5.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
3 120\\
};
\addplot [color=mycolor1,mark size=6.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
4 120\\
};
\addplot [color=mycolor1,mark size=7.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
5 120\\
};
\addplot [color=mycolor1,mark size=8.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
6 120\\
};
\addplot [color=mycolor1,mark size=9.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
7 120\\
};
\addplot [color=mycolor1,mark size=10.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
8 120\\
};
\addplot [color=mycolor1,mark size=11.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
9 120\\
};
\addplot [color=mycolor1,mark size=12.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
10 120\\
};
\addplot [color=blue,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
1 130\\
};
\addplot [color=blue,mark size=4.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
2 130\\
};
\addplot [color=blue,mark size=5.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
3 130\\
};
\addplot [color=blue,mark size=6.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
4 130\\
};
\addplot [color=blue,mark size=7.0pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
5 130\\
};
\addplot [color=blue,mark size=8.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
6 130\\
};
\addplot [color=blue,mark size=9.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
7 130\\
};
\addplot [color=blue,mark size=10.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
8 130\\
};
\addplot [color=blue,mark size=11.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
9 130\\
};
\addplot [color=blue,mark size=12.5pt,only marks,mark=star,mark options={solid},forget plot]
table[row sep=crcr]{%
10 130\\
};
\end{axis}
\end{tikzpicture}%
\end{document}
Expected output:

Bad lua output:

Note that SourceForge clips the images. The unclipped images are available on Github.
Thanks for the report.
It is, indeed, incompatible with 'forget plot'.
I have fixed it.
In this example, the line with
forget plotis not shown at all in the result. Is this the same problem as described above? I'm not sure how to apply the latest pgfplots without messing up my Tex Live installation.Yes, it is the same problem.
I will try to make a bug fix release during a brief easter vacation.
Unstable releases of pgfplots can be found at http://pgfplots.sourceforge.net/ and I have just uploaded a version which contains the fix.
In order to install it without overwriting any files of your location installation, you can typically place the new version to, say, ~/texmf or some other "local" folder, then run texhash (recomputes the file database), and it should work.