Simple 3D Plot Using Python: Kathmandu University
Simple 3D Plot Using Python: Kathmandu University
University
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
•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
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.
• 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.
No.
e
Slid
2. Setting Up 3D Axes
• ax = plt.axes(projection="3d") .
No.
A simple 3D plot of an array of e
values Slid
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.
No.
e
Slid