Consider
ContourPlot[Cos[x/4] + Cos[y/4], {x, 0, 4 Pi}, {y, 0, 4 Pi},
PlotLegends -> Automatic]
The output is
How can I put numbers on the borders of each contour, so that I don't need the legend bar? If possible, I'd like to know how to customize the color of numbers, so that they are easily visible.
ContourLabels->True
? $\endgroup$