Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Python Practical 3: 3D Graphs

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 ,

for 10≤t ≤20 (in blue colour).

5. Plot the 3D graph whose parametric equation is (cos(2x), sin(2x), x) for 10 ≤ x ≤ 20

in red color dotted pattern.

2
6. Plot the linegraph whose equation is (x, cos(x),cos (x) ) , for 1≤ x ≤20 divided

into 100 parts (in magenta colour ).

7. Write a Python program to plot 3D graph of the function = in [−10, 10]

with black dashed dotted line with downward pointing triangles.

8. A) Plot 50 contours for the function f(x, y) = − , for x, y ∈ [–10, 10].

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

colour and B) do wireframe plot for the above function in blue.

11. Plot 3D Surface Plot of the function z = cos(|x|+|y|) in −1 < x, y < 1.

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.

----------------------------------- **** ------------------------------------

You might also like