I've been looking around example of rescaling color gradients but I couldn't find any workable solution for my system. I'm importing several .dat files and want to represent similar data with similar color ranges. Essentially, I'd like to rescale the color gradient start/end points to make everything consistent, where the .dat file contains a 2D array of data with z-values that should be colored the same. This is what I have so far:
color= ColorData["DeepSeaColors"];
graph = MatrixPlot[arrayData,
ColorFunctionScaling -> False, ColorFunction -> (cf@Rescale[#3, {200, 805}] &),
GridLines -> Automatic, PlotLegends -> Automatic, Frame -> False, Axes -> False,
Mesh -> Automatic, MeshStyle -> Black,
LabelStyle -> Directive @@ {FontFamily -> "Helvetica", 18, FontColor -> Black},
PlotRange -> {200, 805},
BaseStyle -> Directive @@ {FontFamily -> "Helvetica", 18, FontColor -> Black}];
Unfortunately I just get a bunch of red cubes currently!
arrayData
? Otherwise it is going to be guess work. $\endgroup$cf@Rescale[#, {200, 805}] &
instead ofcf@Rescale[#3, {200, 805}] &
? $\endgroup$