Since I do not have enough reputation to comment yet, I hope it's ok, if i post this as an answer..
I've only started using gnuplot recently myself, so I am not 100% if sure that this is what you're looking for, but take a loot at the answer to this post:
gnuplot palette, default and defined
The gist is that you can define your own color functions and those functions can have conditions (see the third line in the third code box: b(x) = (x == 1 ? 1 : sin(2*pi*x))
). This way at the end of the colorscale, i.e., at x = 1
the blue value is set to 1
, while for the rest of the scale it uses the sin(...)
function, which would be 0
at x = 1
.
Although it technically means that you do NOT ONLY color values outside your color scale range with a different color but also those exactly at the end (or beginning) of it, maybe you can use this in some way by, e.g., adjusting the range of the color scale slightly.