Mobile app version of vmapp.org
Login or Join
Moriarity648

: How to set the data range for palette to map out color in gnuplot I am using gnuplot. I would like to compare across different settings of the same type of data in a color plot using something

@Moriarity648

Posted in: #ChartDesign #DataVisualisation #Gnuplot

I am using gnuplot. I would like to compare across different settings of the same type of data in a color plot using something like the following:

plot 'pdratio' using 1:2:(abs()>0.3?:1/0) with p ps 0.75 pt 4 palette

Gnuplot automatically chooses the data range for the palette to map out color, which can be different from case to case. Is there a way to ask gnuplot to map out colors for the same data range consistently across different cases?

Something like set palette maxcolor 100 would not be adequate for my purposes.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity648

1 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera207

Try using cbrange


The set cbrange command sets the range of values which are colored
using the current palette docs_4.2


set cbrange [min:max]


An example of its use can be found on SO

set palette defined (-1 "red", 0 "white", 1 "blue)
ub = 1
lb = -ub
set cbrange [lb:ub]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme