I have a problem in the color scheme in a 2D spectra.
After a lot of calculations, i can generate a picture like this
in the last part using this instructions
ListContourPlot[dat, ContourShading -> None,
InterpolationOrder -> 3,
Contours -> Delete[CNTRFT[dat], Length[CNTRFT[dat]]/2 + 1/2],
ContourStyle -> CLRFT[dat], PlotRange -> {Ran[[1]], Ran[[2]], All},
DataRange -> Ran, ColorFunctionScaling -> False, Axes -> False]
ListDensityPlot[dat, PlotRange -> {Ran[[1]], Ran[[2]], All},
ColorFunction -> (Hue[.45 - #] &), ColorFunctionScaling -> False,
DataRange -> Ran, InterpolationOrder -> 3, Axes -> False]
the color in the corners (aquamarine) are for zero value, blue and violet are for negative values and yellow and green for positive values. Now i need to clean this color, because i want to train a convolutional network to identify spectra. Then I need the spectra with a color scheme with white for the zero value. I try to use diferent forms as, for example change the Hue value as
(Hue[.45 - #, 0 - #, 1] &)
or
(Hue[.45 - #, 0 + #, 1] &)
but, i only obtain the negative or positive values and zero.
I have this problem for a time and i need to continue. any suggestions?
Thanks a lot for the help.
Regards.
ColorFunction -> (If[# < 0.001, White, Hue[0.45 - #]]&)
. If you want to only replace it when it's exactly equal to zero, then you could use# == 0
instead. $\endgroup$