Professional Documents
Culture Documents
SEM-4 MTC PRCATICAL-3
SEM-4 MTC PRCATICAL-3
Write python programs to do the following, with title to every graph and x, y, z axis labels.
1.Plot 3D axes with labels as x-axis, y-axis and z –axis and also plot following points with
given coordinates in one graph.
a. (90, 25, 55) as a diamond in red colour ,
b. (– 50, 72, 45) as a square in brown colour ,
c. (70, 82, 95) as a dot in green colour.
2. Plot for the function f(x, y) = sin (x2 + y2) in the interval [0, 10] in brown colour.
3. Plot graph of the function f(x, y) = –x2 − y2when −10 ≤ x, y ≤ 10in magenta colour.
4. Plot the line graph whose parametric equation is x= cos(t), y =sin(t), z=t ,
2
6. Plot the linegraph whose equation is (x, cos(x),cos (x) ) , for 1≤ x ≤20 divided
B) Draw surface plot of the above function in green colour in separate figure.
2 2
9. A) Draw wireframe plot for the function f(x, y) = log(x y ), when –5 ≤ x, y ≤ 5 ,
with any colour of your choice. B) Also plot 25 contours for the above function in black.
10. A) Draw surface plot for the function f(x, y) = for x, y ∈ [–2, 2], with red
12. Plot the 3D graph of the function f(x, y) = sin x+cos y, for x, y ∈ [−2π, 2π]
using wireframe plot.
13. Plot the 3D graph of the function f(x,y) = for x, y ∈ [0, 2π] using wireframe.
14. Generate 3D surface plot of the function z = sin x+cos y in −10 < x, y < 10.
15. Using Python plot the surface plot of parabola z = x2 + y2 in −6 < x, y < 6.