how can i specify the contour spacing or how the color range is distributed amongst the function values?
Let's say i plot some function depending on x and y. Function values differ between [0, 1]. I want that mathematica makes ...let's say 10 contours for the function value range [0,0.9] and another 10 contours for the rest of the range [0.9,1]. Further more the last Contour of the [0,0.9] range is supposed to be thicker, in order to show that from here on the contour spacing is finer.
thx for your help
thats alot so far for your help, my actual question has been answered already. but a follow-up question has arisen for me since the implementation of your codes does not work with my actual function and i don't know why. I have purged that function and the functions it calls from most variables and replaced them by constants for simplicity reasons. I hope it's ok so.
eislexpl[epsilon_, n2_, x_] := 28 (epsilon)^2 - 1 +
((-2 Log[E^(1/2) x])/x^2 + (2.7(0.3 - epsilon))/x +
(10 epsilon^2 n2^(3/2))/x^(3/2));
eislminx2[epsilon_?NumericQ, n2_?NumericQ] :=
(minx = FindArgMin[{eislexpl[epsilon, n2, x], 0 < x}, x];
eislexpl[epsilon, n2, minx]);
ueislexpl[epsilon_, h_, n1_, n2_] :=
n1 (40 epsilon^2 - 1) + (1 -1.27 ) (1 + (n1 - 1) HeavisideTheta[1 - n1] -
(-1 + Exp[-(n1 - 1)]) HeavisideTheta[n1 - 1]) + n2 eislminx2[epsilon, n2] +
(h - n1 - n2) (28 epsilon^2 - 1);
ueislexpl[epsilon_, h_, n1_, n2_] is the function i want to plot with ContourPlot. If i use :
ContourPlot[
ueislexpl[0.1, 5, n1, n2], {n1, 0, 5}, {n2, 0, 5 - n1},
Contours -> (Function[{min, max},
Module[{r1, r2},
Join[r1 = Range[min, .1 max, (.1 max - min)/10],
r2 = Range[.1 max + .01, max, (max - .1 max - .01)/10]]]]),
ContourStyle -> (Join @@ {Table[Thick, {Length@r1}],
Table[Thin, {Length@r2}]})]
It should plot a contourplot with 10 divisions for the value range [min,0.1 max] and 10 more divisions for [0.1 max, max]. But my result is 3 divisions.
What do i have to change?
max->-3.4
and therefore0.1 max > max
, you are placing theContours
out of the range, at this positions: {-4.39953,-3.99363,-3.58774,-3.18184,-2.77595,-2.37005,-1.96416,-1.55826,-1.15237,-0.746472,-0.340577,-0.330577,-0.638096,-0.945615,-1.25313,-1.56065,-1.86817,-2.17569,-2.48321,-2.79073,-3.09825,-3.40577} $\endgroup$