I am using python seaborn package to generate a diverging color palette (seaborn.diverging_palette).
I can choose my two extremity colors, and define if the center is light-> white or dark->black (centerparameter). But what I would like is to extend this center part color (white in my case) to a given range of values.
For example, my values are from 0 to 20. So, my midpoint is 10. Hence, only 10 is in white, and then it becomes more green/more blue when going to 0/20. I would like to keep the color white from 7 to 13 (3 before/after the midpont), and then start to move to green/blue.
I found the sep parameter, which extends or reduces this center white part. But I can't find any explanation on what its value means, in order to find which value of sepwould correspond to 3 each side of the midpoint for example.
Does anybody know the relationship between sep and the value scale ? Or if another parameter could do the expected behaviour ?