Hello!
Running Gnuplot Version 5.4 patchlevel 4 (Debian stable).
When using the lua latex terminal, the "maxcolor" option for palettes has no effect: See minimum working example below:
set terminal lua tikz latex color standalone size 3in,2in
set output "test.tex"
set palette maxcolors 3
set palette defined ( 0 '#0000ff',\
1 '#00ff00',\
2 '#ff0000')
plot "+" u 0:1:1 w l lw 4 lc palette notitle
Using the epslatex terminal instead, everything works as expected - replace the first two lines of the code above with:
set terminal epslatex color standalone size 3in,2in
set output "test2.tex"
Attached, the pdf files obtained by running pdflatex test.tex and pdflatex test2.tex -- clearly only the second file test2.pdf shows a discrete palette as desired.
Any insight here would be appreciated
Ben