set terminal png
set output "matlab.png"
# Approximate the default palette used by MATLAB:
set pal defined (1 '#00008f', 8 '#0000ff', 24 '#00ffff', 40 '#ffff00', 56 '#ff0000', 64 '#800000')
test palette
show palette
palette is COLOR
color mapping by defined gradient
figure is POSITIVE
all color formulae ARE NOT written into output postscript file
allocating ALL remaining color positions for discrete palette terminals
Color-Model: RGB
gamma is 1.5
show palette gradient
0. gray=0.0000, (r,g,b)=(0.0000,0.0000,0.5608), #00008f = 0 0 143
1. gray=0.1111, (r,g,b)=(0.0000,0.0000,1.0000), #0000ff = 0 0 255
2. gray=0.3651, (r,g,b)=(0.0000,1.0000,1.0000), #00ffff = 0 255 255
3. gray=0.6190, (r,g,b)=(1.0000,1.0000,0.0000), #ffff00 = 255 255 0
4. gray=0.8730, (r,g,b)=(1.0000,0.0000,0.0000), #ff0000 = 255 0 0
5. gray=1.0000, (r,g,b)=(0.5020,0.0000,0.0000), #800000 = 128 0 0