I am using ListDensityPlot to plot data of the form {{x1,y1,z1},{x2,y2,z2}, …}. It results in the plot shown below. But I'd like to adjust the color scale contrast to better show the variations in the low-Z parts (in blue). Basically, I need more color variations for the low Z values (below ~30) and less color variations for larger values.
I've tried a log scale, but it does not show the contract sufficiently. Thanks for the help.
Here is a simplified version of the code I am using:
colorbar[{min_, max_}, colorFunction_: Automatic, divs_: 100] := DensityPlot[
y, {x, 0, 0.2}, {y, min, max},
PlotPoints -> {2, divs},
ColorFunction -> colorFunction,
AspectRatio -> 10,
PlotRangePadding -> 0,
MaxRecursion -> 0,
FrameTicks -> {None, Automatic},
FrameLabel -> {"", "Z"}];
MyData = Import["DataFileXYZ.dat", "Table"];
MyColorBar := Show[colorbar[
{Min[Transpose[MyData][[3]]], Max[Transpose[MyData][[3]]]},
"Temperature"]];
MyPlot := ListDensityPlot[
MyData,
ColorFunction -> Function[{height},
ColorData["Temperature"][height]],
FrameLabel -> {"X", "Y"}]
Row[Show[#, ImageSize -> {Automatic, 600}] & /@ {MyPlot, MyColorBar}]
Data file I used is here: https://www.dropbox.com/s/y1oqx8kv5o39ter/DataFileXYZ.txt?dl=0
ListContourPlot
and specify the contours you want? $\endgroup$