0

Do you know how to set a symmetric palette color ? I mean dark/blue for z=0, red/orange z=1.5 and z=-1.5 and yellow z=3 z=-3 with still a gradient color between color level.

enter image description here

If you have any ideas please ? Thanks you !

Suntory
  • 305
  • 2
  • 15

1 Answers1

3

What is your code so far? Have you checked help, especially help palette? Check the following example:

Code:

 ### defined symmetric palette
reset session
set size square

set palette defined (0 'yellow', 1 'red', 2 'dark-blue', 3 'black', 4 'dark-blue', 5 'red', 6 'yellow')

set samples 100
set isosamples 100

plot '++' u 1:2:(sqrt(abs($1*$2))*1.2-3) w image notitle
### end of code

Result: enter image description here

theozh
  • 22,244
  • 5
  • 28
  • 72