Bug introduced in 8 or earlier and persisting through 11.0.1 or later
ListContourPlot
uses the wrong colouring here:
res = Import["https://dl.dropboxusercontent.com/u/38623/res.wdx", "WDX"];
ListContourPlot[res, Contours -> Range[0.66, 0.9, 0.02], ColorFunction -> "Rainbow"]
The contour plot shows that the function value decreases around the bottom middle, even though it reaches its maximum there in reality.
The tooltips for the contour values between the red and orange regions are correct however: one contour shows 0.84 and the other 0.86. It's just the colouring that's wrong.
Compare
ListDensityPlot[res, ColorFunction -> "Rainbow"]
What is the simplest, most convenient workaround for this problem? Also, is this a bug or am I missing something? Can anyone explain why this happens?
I do need these specific contour values. Interpolation
+ ContourPlot
gives the exact same result:
if = Interpolation[res]
ContourPlot[if[x, y], {x, 0.1, 1}, {y, 7, 9.4},
Contours -> Range[0.66, 9, 0.02], ColorFunction -> "Rainbow"]
ListDensityPlot[res, ColorFunction -> "Rainbow", Mesh -> {Range[0.66, 0.9, 0.02]}, MeshFunctions -> {#3 &}, MeshStyle -> GrayLevel[0, 0.5]]
$\endgroup$