I have a ContourPlot where every contour should be displayed with a different color
ContourPlot[
-((2500*Sqrt[13]*(x - 10000)*x^2*y)/(15625*x^4 - 13*(x - 10000)^2*y^2)),
{x, 35, 100},
{y, 1.4, 5.6},
PlotLegends -> Automatic,
Contours -> 20,
ColorFunction -> "DarkRainbow"
]
but I get this output
it looks like the ColorFunction
does not work. So I tried to add ColorFunctionScaling->False
which gives me this output
As you can see there is a difference but not what I was expecting. I tried to use ColorFunctionScaling->True
as well which gives me the same output as I had in the beginning.
{min, max} = #[{f[x, y], 35 <= x <= 100, 1.4 <= y <= 5.6}, {x, y}] & /@ {MinValue, MaxValue}
andPlot3D[f[x, y], {x, 35, 100}, {y, 1.4, 5.6}, PlotRange -> All, PlotPoints -> 100, MaxRecursion -> 5]
show that your function is relatively flat except in one corner that distorts the range of the argument fed toColorFunction
$\endgroup$