I have a function f(x,y) which stays within 0.6 to 0.85 for a specific range of x and y. I want to make a contour plot in Gray Tones. Default: 0 is black and 1 is white. I want to change it to 0.55 is black and 0.85 is white. How to do this? I have written the following in the notebook :

ContourPlot[f[m1, m2], {m1, 100, 1150}, {m2, 100, 920}, ContourLabels -> All,

Axes -> False, Frame -> True,

FrameLabel -> {"\!\(\*SubscriptBox[\(m\), \(\(1\)\(+\)\)]\)(GeV)",

"\!\(\*SubscriptBox[\(m\), \(\(2\)\(+\)\)]\)(GeV)"},

ColorFunction -> ColorDataFunction[{0.55, 0.85}, ColorData["GrayTones"]],

(*ColorFunctionScaling->False,*)

PlotRange -> {Full, Full, Full},

Contours -> {0.70, 0.75, 0.78, 0.8, 0.802},

BaseStyle -> {FontFamily -> "Times", FontSize -> 24},

ImageSize -> {500, 500}]

But I get everything in black!

More Dipankar Das's questions See All
Similar questions and discussions