title: Gnuplot - defining spacing of color palette with a function
body: <p>I am plotting a data file with points whose color is defined through a palette that goes from 0 to 1. The color refers to a value in a column of the file; I assign a palette with different hues of &quot;blue&quot;:</p>
  <blockquote>
  <p>set cbrange [0:1]</p>
  <p>set palette defined (1 &quot;#B0E2FF&quot;, 2 &quot;#87CEFA&quot;, 3 &quot;#7EC0EE&quot;, 4 &quot;#4F94CD&quot;, 5 &quot;#4E78A0&quot;, 6 &quot;#104E8B&quot;, 7 &quot;#1B3F8B&quot;, 8 &quot;#162252&quot;)</p>
  </blockquote>
  <p>The problem is, the palette gets linearly spaced in colors. So for my data this isn't good, I'd like more precision in the intermediate range of values (large color bins) and small precision in the extremes (small color bins).</p>
  <p>I've found I could use a palette in a log scale:</p>
  <blockquote>
  <p>set log cb</p>
  </blockquote>
  <p>but this of course isn't good for me either, given what I want. I'd need to apply a self-defined function to space values in my palette. Is that possible?</p>