Hello,
When defining the palette, colors are supported, but we cannot specify some amount of transparency.
This would be very neat in order to visualize crowded plots (where we might want to see
through some of the front/last-plotted lines).
Example:
set palette defined (0 0.0 0.0 0.5, \
1 0.0 0.0 1.0, \
2 0.0 0.5 1.0, \
3 0.0 1.0 1.0, \
4 0.5 1.0 0.5, \
5 1.0 1.0 0.0, \
6 1.0 0.5 0.0, \
7 1.0 0.0 0.0, \
8 0.5 0.0 0.0 )
Those are only RGB triplets (I believe), adding a transparency value is not supported.
There are many cool palettes defined here:
https://github.com/Gnuplotting/gnuplot-palettes
But none using some amount of transparency.
Of course, the user might want to tweak the level of transparency
so that the final result is optimal.
Thanks a lot,
F.
Depending on exactly what you need to have in your plot, there are several ways to do this. I will give some examples. If they don't cover exactly what you want, please clarify the requirements.
Supported for a long time (since version 4.something)
Full pm3d (palette-color by z value) surface has some amount of transparency
pm3d surface from data where each point has 7 associated values: x y z R G B Alpha
Supported in current release version (5.4)
Add transparency from column 4 to palette color in column 3
Supported in the development version (5.5)
Define a named palette that includes an alpha component for each palette value