: 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
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.
More posts by @Moriarity648
1 Comments
Sorted by latest first Latest Oldest Best
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]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.