Contour map For a function f(z,y), its contour map can be drawn by ContourPlot[f(x, y), {x, Xmin, Xmin}, {Y, Ymin, Ymin}
Posted: Fri May 20, 2022 6:34 pm
Contour map For a function f(z,y), its contour map can be drawn by ContourPlot[f(x, y), {x, Xmin, Xmin}, {Y, Ymin, Ymin}, ContourLabels->True] We are using ContourPlot here and not ContourPlot3D because contour maps are two dimensional objects. The level curves for a particular output care solutions to the equation f(,y) = c(written with double equals as f(z,y)==c in Mathematica). So if we replace f(t, y) with f(x, y)==c then ContourPlot will plot solutions to an equation in two variables. Example 1: Plotting a contour map Generate the contour map above. Show solution Solution The code that generated the contour map above is Contour Plot Sin[x] + Sin[y], {x, 0, 2Pi}, {y, 0, 2Pi}, ContourLabels->True ] If we omit the ContourLabels->True option then the contour map will be drawn without labels. You can control the number of level curves by adding the option Contours->n for some number n. 7 Question Change the code in Example 1 to add the option Contours->25. With this new contour map, what is the largest value of any label? 50 Incorrect. Try again! Hint