I am trying to specify my own colors and scaling for the ColorFunction
in ListDensityPlot
. I have several lists of 2D values which I plot in multiple images, and I want to scale the data according to the absolute maximum and minimum value taken from all the lists.
I want to visualize all the data, but some lists contain quite small values, and a few lists contain data approximately 100× larger.
I have been trying to use Blend
, with the intention of scaling from the minimum to the maximum of the plotted values, using custom colors:
MyPlot = ListDensityPlot[Transpose[Join[Transpose[Points],
Rescale[Transpose[#], {MinV, MaxV}]]],
AspectRatio -> Automatic,
ColorFunction -> (Blend[{{0, Purple}, {0.5, Blue},
{1, Green}, {3, Yellow},
{6, Red}}, #] &),
ColorFunctionScaling -> False,
PerformanceGoal -> "Quality",
PlotRange -> All] &;
However, I was thinking that it would be nice to create something like a Manipulate
bar to change the values related to the used colors and "tune" the colors in a more comfortable way.
Can anyone give me advice on how to implement it?