I'm trying to make a graph of RGB values vs the colour such as this one:

My approach has been based off of http://gnuplot.sourceforge.net/demo/pm3dcolors.html
For this it's important to be able to correctly display an arbitrary number of colours, lined up with a plot.
In the above image you can kinda see weird overlap between colours, and there are different widths, and it doesn't quite line up with the graph.
The rest of this post is demonstrating the minimum required to make it look weird.
I've found that it starts messing things up after 33 colours.
#!/usr/bin/env gnuplot
set format cb "%3.1f"
set style function pm3d
set view map scale 1
unset xtics
unset ytics
unset ztics
unset colorbox
unset key
set title "33 colours"
set palette model RGB
set palette file "-"
1 0 0
0 1 0
0 0 1
... repeat many times ...
1 0 0
0 1 0
0 0 1
e
set palette maxcolors 33
g(x)=x
splot g(x)
pause mouse any "press the any key to exit gnuplot
- This is what happens with 33 and below colours:

- This is what happens with 34 (the middle green is less wide):

- If we go up to 66 you can see even more stuff wrong:

So overall, this is pretty clearly an abuse of gnuplot.
Is there some other approach that would work better? If not, how should I go about debugging this?
I'm running gnuplot 5.4 patchlevel 1 from the debian repos on debian bullseye.
Thank you for any suggestions.
EDIT:
I fell into the trap of the XY problem. I want the first graph in the question to not have weird stuff like how you can see different color widths, when they should all be the same width. I asked about the minimum way I found to show the weird thing I'm seeing with set palette.
My current input data looks like this:
Hue, Red, Green, Blue
0.0100, 255, 15, 0
0.0300, 255, 46, 0
0.0400, 255, 61, 0
0.0600, 255, 92, 0
0.0700, 255, 107, 0
...
My script to generate that plot is http://ix.io/3BE2




