0% found this document useful (0 votes)
3 views11 pages

Simple 3D Plot Using Python: Kathmandu University

The document outlines a project on creating simple 3D plots using Python, detailing the components, tools, and applications of 3D visualizations. It discusses the use of libraries like Matplotlib and Plotly for plotting, as well as the process of generating and visualizing data in three dimensions. The applications span various fields including engineering, IoT, and scientific research.

Uploaded by

badalabhinav10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views11 pages

Simple 3D Plot Using Python: Kathmandu University

The document outlines a project on creating simple 3D plots using Python, detailing the components, tools, and applications of 3D visualizations. It discusses the use of libraries like Matplotlib and Plotly for plotting, as well as the process of generating and visualizing data in three dimensions. The applications span various fields including engineering, IoT, and scientific research.

Uploaded by

badalabhinav10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Kathmandu

University

Simple 3D Plot using Python

Department Group No 7
of Sabin Bhandari (22222)
Electrical and Electronics
Anish Dawadi(22225)
Engineering
Abhinav Badal(22053)

MCSC 202
Course Project
Project Introduction

A simple 3D plot represents data in three dimensions (x, y, and z) to visualize relationships that
would be difficult or impossible to see in 2D. These plots are often used to analyze complex
datasets in fields such as engineering, physics, and data science.
Components of a Simple 3D Plot:

• Axes:
• X-axis: Represents one independent variable or parameter.
• Y-axis: Represents another independent variable or parameter.
• Z-axis: Represents the dependent variable or outcome based on the x and y axes.

No.
e
Slid
Block Diagram for ACTIVE NOISE CANCELLATION

Simple 3D Plot using python 2


Project Introduction

•Data Representation:
• Points: Each point in the 3D space is defined by its (x, y, z) coordinates.
• Surface or Mesh: A continuous representation connecting the points to form a plane or shap
• Wireframe: A grid-like view of the surface, often used to see the structure of the data.

•Perspective:
• Allows rotation, zooming, and panning to explore the data from different angles.

•Color:
• Used to encode additional information, such as intensity or grouping.
No.
e
Slid
Block Diagram for ACTIVE NOISE CANCELLATION

Simple 3D Plot using python 3


Project Introduction
Tools for Creating 3D Plots
There are several tools and libraries used to create 3D plots, ranging from simple plotting to
advanced, interactive visualizations. Here’s a breakdown:

1. Python Libraries
•Matplotlib:
• Popular for static 3D visualizations.
• Supports surface plots, scatter plots, wireframes, and more.
• Example: mpl_toolkits.mplot3d for 3D axes.

•Plotly:
• Interactive and web-friendly 3D plots.
No.
e
• Supports hover functionality, zooming, and panning. Slid
• Example: plotly.graph_objects for 3D surfaces or scatter plots.

Simple 3D Plot using python 4


Project Introduction
• 2. Other Programming Tools

• MATLAB:
• Built-in support for high-quality 3D plotting.
• Widely used in engineering and scientific applications.

• R:
• Libraries like plot3D, rgl, and ggplot2 (3D extensions) provide robust support for 3D visualizations.

3. Specialized 3D Tools

• Blender:
• Used for high-quality rendering and animations in 3D. No.
• Supports scientific visualizations, but with a steep learning curve. e
Slid
• ParaView:
• Designed for large data visualizations in scientific computing.

Simple 3D Plot using python 5


Project Code

No.
e
Slid

Simple 3D Plot using python 6


Project Description
Code Explanation
1. Importing Libraries
• NumPy: Used to generate the numerical data, specifically arrays for xxx,
yyy, and zzz values.
• Matplotlib: Used for visualization, including 3D plotting.

2. Setting Up 3D Axes
• ax = plt.axes(projection="3d") .

3. Creating a 3D plotting environment


• The projection="3d" argument creates a 3D plotting environment. No.
e
4. Generating X and Y Data Points
Slid

• x-coordinates ranging from -5 to 5, with a step size of 0.1.


• y-coordinates ranging from -5 to 5, with a step size of 0.1.
Simple 3D Plot using python 7
Project Description
5. Creating a 2D grid of x and y values
• 'meshgrid' creates two 2D arrays:
• X contains the x-coordinates repeated across rows.
• Y contains the y-coordinates repeated across columns.

6. Compute the z-values for the surface


• The surface's height (Z) is defined by the function Z = sin(X) * cos(Y).

7. Ploting the surface


• 'plot_surface' renders the surface defined by X, Y, and Z arrays.
• The 'cmap="plasma"' argument applies a color map based on the Z-values.

8. Adjusting the viewing angle


• Sets the azimuthal angle (horizontal rotation) to 0 degrees.
• The plot is aligned with the x-axis as the horizontal reference.
No.
e
Slid
9. Showing the plot Block Diagram for ACTIVE NOISE CANCELLATION
• Show the plot ,
• Displays the 3D plot to the user.
Simple 3D Plot using python 4
Project Outputs

No.
A simple 3D plot of an array of e
values Slid

Simple 3D Plot using python 5


Project Application
Applications of 3D Plots

3D plots are powerful tools for understanding and communicating complex datasets. Here
are some practical applications:

1. Engineering
• Mechanical Engineering: Visualizing stress-strain distributions, vibrations, and fluid dynamics.
• Electrical Engineering: Analyzing electromagnetic fields or circuit behavior.
• Civil Engineering: Visualizing terrains, structural stress, or building layouts.

2. IoT and Smart Systems


• Monitoring multi-sensor data like temperature, humidity, and energy consumption.
• Real-time visualization of metrics in smart homes/buildings.
• Example: Visualizing the output of smart energy meters in 3D dashboards. No.
e
3. Scientific Research Slid
• Physics: Simulating wave functions, quantum mechanics, or gravitational fields.
• Biology: Visualizing molecular structures, protein folding, or genomic data.
• Geology: Analyzing 3D terrains, subsurface geological formations, or seismic data.

Simple 3D Plot using python 4


Conclusion

No.
e
Slid

Simple 3D Plot using python 4

You might also like