Menu

#2706 set palette maxcolor in lua latex terminal has no effect

None
closed-fixed
nobody
None
2024-05-28
2024-05-12
Anonymous
No

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

2 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2024-05-14
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2024-05-28
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.